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_dv.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_dv.c')
-rw-r--r-- | libavformat/rtpdec_dv.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavformat/rtpdec_dv.c b/libavformat/rtpdec_dv.c index f83fd90fab..79a721817b 100644 --- a/libavformat/rtpdec_dv.c +++ b/libavformat/rtpdec_dv.c @@ -31,11 +31,6 @@ struct PayloadContext { int bundled_audio; }; -static av_cold PayloadContext *dv_new_context(void) -{ - return av_mallocz(sizeof(PayloadContext)); -} - static void dv_free_dyn_buffer(AVIOContext **dyn_buf) { uint8_t *ptr_dyn_buffer; @@ -150,7 +145,7 @@ RTPDynamicProtocolHandler ff_dv_dynamic_handler = { .codec_id = AV_CODEC_ID_DVVIDEO, .need_parsing = AVSTREAM_PARSE_FULL, .parse_sdp_a_line = dv_parse_sdp_line, - .alloc = dv_new_context, + .priv_data_size = sizeof(PayloadContext), .free = dv_free_context, .parse_packet = dv_handle_packet, }; |