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/rtp_asf.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/rtp_asf.c')
-rw-r--r-- | libavformat/rtp_asf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavformat/rtp_asf.c b/libavformat/rtp_asf.c index 33a4a31b40..7d17ab2021 100644 --- a/libavformat/rtp_asf.c +++ b/libavformat/rtp_asf.c @@ -274,13 +274,13 @@ asfrtp_free_context (PayloadContext *asf) #define RTP_ASF_HANDLER(n, s, t) \ RTPDynamicProtocolHandler ff_ms_rtp_ ## n ## _handler = { \ - s, \ - t, \ - CODEC_ID_NONE, \ - asfrtp_parse_sdp_line, \ - asfrtp_new_context, \ - asfrtp_free_context, \ - asfrtp_parse_packet, \ + .enc_name = s, \ + .codec_type = t, \ + .codec_id = CODEC_ID_NONE, \ + .parse_sdp_a_line = asfrtp_parse_sdp_line, \ + .open = asfrtp_new_context, \ + .close = asfrtp_free_context, \ + .parse_packet = asfrtp_parse_packet, \ }; RTP_ASF_HANDLER(asf_pfv, "x-asf-pf", CODEC_TYPE_VIDEO); |