From 202a6697ba54293235ce2d7bd5724f4f461e417f Mon Sep 17 00:00:00 2001 From: Colin McQuillan Date: Mon, 27 Jul 2009 14:29:06 +0000 Subject: 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 --- libavformat/rdt.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libavformat/rdt.c') 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); -- cgit v1.2.3