From 5d8cae45737bed6239bd6b6e0698802dbe1463c8 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 23 Feb 2015 22:18:32 +0200 Subject: rtpdec: Get rid of all trivial .alloc/.free functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavformat/rtpdec_qt.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libavformat/rtpdec_qt.c') diff --git a/libavformat/rtpdec_qt.c b/libavformat/rtpdec_qt.c index 2d9c603fcd..7c14bada56 100644 --- a/libavformat/rtpdec_qt.c +++ b/libavformat/rtpdec_qt.c @@ -235,11 +235,6 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt, } } -static PayloadContext *qt_rtp_new(void) -{ - return av_mallocz(sizeof(PayloadContext)); -} - static void qt_rtp_free(PayloadContext *qt) { av_freep(&qt->pkt.data); @@ -251,7 +246,7 @@ RTPDynamicProtocolHandler ff_ ## m ## _rtp_ ## n ## _handler = { \ .enc_name = s, \ .codec_type = t, \ .codec_id = AV_CODEC_ID_NONE, \ - .alloc = qt_rtp_new, \ + .priv_data_size = sizeof(PayloadContext), \ .free = qt_rtp_free, \ .parse_packet = qt_rtp_parse_packet, \ } -- cgit v1.2.3