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

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

Issue 4533003: patched ffmpeg nov 2 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: '' Created 10 years, 1 month 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 { 269 {
270 UDPContext *s = h->priv_data; 270 UDPContext *s = h->priv_data;
271 return s->local_port; 271 return s->local_port;
272 } 272 }
273 273
274 /** 274 /**
275 * Return the udp file handle for select() usage to wait for several RTP 275 * Return the udp file handle for select() usage to wait for several RTP
276 * streams at the same time. 276 * streams at the same time.
277 * @param h media file context 277 * @param h media file context
278 */ 278 */
279 #if (LIBAVFORMAT_VERSION_MAJOR >= 53) 279 #if !FF_API_UDP_GET_FILE
280 static 280 static
281 #endif 281 #endif
282 int udp_get_file_handle(URLContext *h) 282 int udp_get_file_handle(URLContext *h)
283 { 283 {
284 UDPContext *s = h->priv_data; 284 UDPContext *s = h->priv_data;
285 return s->udp_fd; 285 return s->udp_fd;
286 } 286 }
287 287
288 /* put it in UDP context */ 288 /* put it in UDP context */
289 /* return non zero if error */ 289 /* return non zero if error */
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 484
485 URLProtocol udp_protocol = { 485 URLProtocol udp_protocol = {
486 "udp", 486 "udp",
487 udp_open, 487 udp_open,
488 udp_read, 488 udp_read,
489 udp_write, 489 udp_write,
490 NULL, /* seek */ 490 NULL, /* seek */
491 udp_close, 491 udp_close,
492 .url_get_file_handle = udp_get_file_handle, 492 .url_get_file_handle = udp_get_file_handle,
493 }; 493 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698