comparison 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
comparison
equal deleted inserted replaced
5112:85e0a9761818 5113:75e51cba276e
272 av_free(asf); 272 av_free(asf);
273 } 273 }
274 274
275 #define RTP_ASF_HANDLER(n, s, t) \ 275 #define RTP_ASF_HANDLER(n, s, t) \
276 RTPDynamicProtocolHandler ff_ms_rtp_ ## n ## _handler = { \ 276 RTPDynamicProtocolHandler ff_ms_rtp_ ## n ## _handler = { \
277 s, \ 277 .enc_name = s, \
278 t, \ 278 .codec_type = t, \
279 CODEC_ID_NONE, \ 279 .codec_id = CODEC_ID_NONE, \
280 asfrtp_parse_sdp_line, \ 280 .parse_sdp_a_line = asfrtp_parse_sdp_line, \
281 asfrtp_new_context, \ 281 .open = asfrtp_new_context, \
282 asfrtp_free_context, \ 282 .close = asfrtp_free_context, \
283 asfrtp_parse_packet, \ 283 .parse_packet = asfrtp_parse_packet, \
284 }; 284 };
285 285
286 RTP_ASF_HANDLER(asf_pfv, "x-asf-pf", CODEC_TYPE_VIDEO); 286 RTP_ASF_HANDLER(asf_pfv, "x-asf-pf", CODEC_TYPE_VIDEO);
287 RTP_ASF_HANDLER(asf_pfa, "x-asf-pf", CODEC_TYPE_AUDIO); 287 RTP_ASF_HANDLER(asf_pfa, "x-asf-pf", CODEC_TYPE_AUDIO);