Mercurial > libavformat.hg
diff rtp_asf.c @ 5113:75e51cba276e libavformat
Use named initializers and use new/free_context() instead of extradata()
for context allocators. Patch by Colin McQuillan m niloc googlemail com.
author | rbultje |
---|---|
date | Mon, 27 Jul 2009 14:29:06 +0000 |
parents | aa0edc246bca |
children | 51b1a9987537 |
line wrap: on
line diff
--- a/rtp_asf.c Mon Jul 27 14:03:53 2009 +0000 +++ b/rtp_asf.c Mon Jul 27 14:29:06 2009 +0000 @@ -274,13 +274,13 @@ #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);