diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-23 22:18:32 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-24 16:24:19 +0200 |
commit | 5d8cae45737bed6239bd6b6e0698802dbe1463c8 (patch) | |
tree | d7f5c2316c6d71136cde6d31da2bd2f491362560 /libavformat/rtpdec_qdm2.c | |
parent | e72605f80bf5cbe32053a554ccc137e0a99cf3dd (diff) | |
download | ffmpeg-5d8cae45737bed6239bd6b6e0698802dbe1463c8.tar.gz |
rtpdec: Get rid of all trivial .alloc/.free functions
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_qdm2.c')
-rw-r--r-- | libavformat/rtpdec_qdm2.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libavformat/rtpdec_qdm2.c b/libavformat/rtpdec_qdm2.c index 0d7b5bb87a..8eea571460 100644 --- a/libavformat/rtpdec_qdm2.c +++ b/libavformat/rtpdec_qdm2.c @@ -298,21 +298,10 @@ static int qdm2_parse_packet(AVFormatContext *s, PayloadContext *qdm, return (qdm->cache > 0) ? 1 : 0; } -static PayloadContext *qdm2_extradata_new(void) -{ - return av_mallocz(sizeof(PayloadContext)); -} - -static void qdm2_extradata_free(PayloadContext *qdm) -{ - av_free(qdm); -} - RTPDynamicProtocolHandler ff_qdm2_dynamic_handler = { .enc_name = "X-QDM", .codec_type = AVMEDIA_TYPE_AUDIO, .codec_id = AV_CODEC_ID_NONE, - .alloc = qdm2_extradata_new, - .free = qdm2_extradata_free, + .priv_data_size = sizeof(PayloadContext), .parse_packet = qdm2_parse_packet, }; |