diff options
author | Colin McQuillan <m.niloc@googlemail.com> | 2009-07-27 14:29:06 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2009-07-27 14:29:06 +0000 |
commit | 202a6697ba54293235ce2d7bd5724f4f461e417f (patch) | |
tree | 5c67b537092c6fb1b007f6fae4bc8ff8e22d2659 /libavformat/rdt.c | |
parent | fccb1770e6f8b21716e61193396fd9dc2e43b79d (diff) | |
download | ffmpeg-202a6697ba54293235ce2d7bd5724f4f461e417f.tar.gz |
Use named initializers and use new/free_context() instead of extradata()
for context allocators. Patch by Colin McQuillan m niloc googlemail com.
Originally committed as revision 19518 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rdt.c')
-rw-r--r-- | libavformat/rdt.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libavformat/rdt.c b/libavformat/rdt.c index 7c66242220..b1dd93918e 100644 --- a/libavformat/rdt.c +++ b/libavformat/rdt.c @@ -511,7 +511,7 @@ ff_real_parse_sdp_a_line (AVFormatContext *s, int stream_index, } static PayloadContext * -rdt_new_extradata (void) +rdt_new_context (void) { PayloadContext *rdt = av_mallocz(sizeof(PayloadContext)); @@ -521,7 +521,7 @@ rdt_new_extradata (void) } static void -rdt_free_extradata (PayloadContext *rdt) +rdt_free_context (PayloadContext *rdt) { int i; @@ -538,13 +538,13 @@ rdt_free_extradata (PayloadContext *rdt) #define RDT_HANDLER(n, s, t) \ static RTPDynamicProtocolHandler ff_rdt_ ## n ## _handler = { \ - s, \ - t, \ - CODEC_ID_NONE, \ - rdt_parse_sdp_line, \ - rdt_new_extradata, \ - rdt_free_extradata, \ - rdt_parse_packet \ + .enc_name = s, \ + .codec_type = t, \ + .codec_id = CODEC_ID_NONE, \ + .parse_sdp_a_line = rdt_parse_sdp_line, \ + .open = rdt_new_context, \ + .close = rdt_free_context, \ + .parse_packet = rdt_parse_packet \ }; RDT_HANDLER(live_video, "x-pn-multirate-realvideo-live", CODEC_TYPE_VIDEO); |