diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-24 22:55:14 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-24 22:55:20 +0100 |
commit | 3804d73e46517a7db8464f5affd49b9406dc91ba (patch) | |
tree | 5ebac75e43d9b69bfe1bfba880a60caecb642830 /libavformat/rtpdec_mpeg4.c | |
parent | 48e3cd4fcd49cd7663f56611e20abb5a860caeaa (diff) | |
parent | 5d8cae45737bed6239bd6b6e0698802dbe1463c8 (diff) |
Merge commit '5d8cae45737bed6239bd6b6e0698802dbe1463c8'
* commit '5d8cae45737bed6239bd6b6e0698802dbe1463c8':
rtpdec: Get rid of all trivial .alloc/.free functions
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpdec_mpeg4.c')
-rw-r--r-- | libavformat/rtpdec_mpeg4.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c index da58c032f2..27184d9faa 100644 --- a/libavformat/rtpdec_mpeg4.c +++ b/libavformat/rtpdec_mpeg4.c @@ -91,11 +91,6 @@ static const AttrNameMap attr_names[] = { { NULL, -1, -1 }, }; -static PayloadContext *new_context(void) -{ - return av_mallocz(sizeof(PayloadContext)); -} - static void free_context(PayloadContext *data) { av_freep(&data->au_headers); @@ -325,6 +320,7 @@ RTPDynamicProtocolHandler ff_mp4v_es_dynamic_handler = { .codec_type = AVMEDIA_TYPE_VIDEO, .codec_id = AV_CODEC_ID_MPEG4, .need_parsing = AVSTREAM_PARSE_FULL, + .priv_data_size = sizeof(PayloadContext), .parse_sdp_a_line = parse_sdp_line, }; @@ -332,8 +328,8 @@ RTPDynamicProtocolHandler ff_mpeg4_generic_dynamic_handler = { .enc_name = "mpeg4-generic", .codec_type = AVMEDIA_TYPE_AUDIO, .codec_id = AV_CODEC_ID_AAC, + .priv_data_size = sizeof(PayloadContext), .parse_sdp_a_line = parse_sdp_line, - .alloc = new_context, .free = free_context, .parse_packet = aac_parse_packet, }; |