summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec_qt.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-02-23 22:18:32 +0200
committerMartin Storsjö <martin@martin.st>2015-02-24 16:24:19 +0200
commit5d8cae45737bed6239bd6b6e0698802dbe1463c8 (patch)
treed7f5c2316c6d71136cde6d31da2bd2f491362560 /libavformat/rtpdec_qt.c
parente72605f80bf5cbe32053a554ccc137e0a99cf3dd (diff)
rtpdec: Get rid of all trivial .alloc/.free functions
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_qt.c')
-rw-r--r--libavformat/rtpdec_qt.c7
1 files changed, 1 insertions, 6 deletions
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, \
}