Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Side by Side Diff: source/patched-ffmpeg-mt/libavformat/udp.c

Issue 2850032: ffmpeg update to june 23 version which fixes mp4 crash on still frames with 3... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * UDP prototype streaming system 2 * UDP prototype streaming system
3 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard 3 * Copyright (c) 2000, 2001, 2002 Fabrice Bellard
4 * 4 *
5 * This file is part of FFmpeg. 5 * This file is part of FFmpeg.
6 * 6 *
7 * FFmpeg is free software; you can redistribute it and/or 7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public 8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version. 10 * version 2.1 of the License, or (at your option) any later version.
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 s->dest_addr_len = udp_set_url(&s->dest_addr, hostname, port); 272 s->dest_addr_len = udp_set_url(&s->dest_addr, hostname, port);
273 if (s->dest_addr_len < 0) { 273 if (s->dest_addr_len < 0) {
274 return AVERROR(EIO); 274 return AVERROR(EIO);
275 } 275 }
276 s->is_multicast = is_multicast_address(&s->dest_addr); 276 s->is_multicast = is_multicast_address(&s->dest_addr);
277 277
278 return 0; 278 return 0;
279 } 279 }
280 280
281 /** 281 /**
282 * Return the local port used by the UDP connexion 282 * Return the local port used by the UDP connection
283 * @param s1 media file context 283 * @param s1 media file context
284 * @return the local port number 284 * @return the local port number
285 */ 285 */
286 int udp_get_local_port(URLContext *h) 286 int udp_get_local_port(URLContext *h)
287 { 287 {
288 UDPContext *s = h->priv_data; 288 UDPContext *s = h->priv_data;
289 return s->local_port; 289 return s->local_port;
290 } 290 }
291 291
292 /** 292 /**
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 489
490 URLProtocol udp_protocol = { 490 URLProtocol udp_protocol = {
491 "udp", 491 "udp",
492 udp_open, 492 udp_open,
493 udp_read, 493 udp_read,
494 udp_write, 494 udp_write,
495 NULL, /* seek */ 495 NULL, /* seek */
496 udp_close, 496 udp_close,
497 .url_get_file_handle = udp_get_file_handle, 497 .url_get_file_handle = udp_get_file_handle,
498 }; 498 };
OLDNEW
« no previous file with comments | « source/patched-ffmpeg-mt/libavformat/spdif.c ('k') | source/patched-ffmpeg-mt/libavformat/utils.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698