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_mpegts.c | |
parent | e72605f80bf5cbe32053a554ccc137e0a99cf3dd (diff) | |
download | android_external_ffmpeg-5d8cae45737bed6239bd6b6e0698802dbe1463c8.tar.gz android_external_ffmpeg-5d8cae45737bed6239bd6b6e0698802dbe1463c8.tar.bz2 android_external_ffmpeg-5d8cae45737bed6239bd6b6e0698802dbe1463c8.zip |
rtpdec: Get rid of all trivial .alloc/.free functions
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec_mpegts.c')
-rw-r--r-- | libavformat/rtpdec_mpegts.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavformat/rtpdec_mpegts.c b/libavformat/rtpdec_mpegts.c index b3ef261336..5ef17cbdf1 100644 --- a/libavformat/rtpdec_mpegts.c +++ b/libavformat/rtpdec_mpegts.c @@ -30,11 +30,6 @@ struct PayloadContext { uint8_t buf[RTP_MAX_PACKET_LENGTH]; }; -static PayloadContext *mpegts_new_context(void) -{ - return av_mallocz(sizeof(PayloadContext)); -} - static void mpegts_free_context(PayloadContext *data) { if (!data) @@ -100,8 +95,8 @@ static int mpegts_handle_packet(AVFormatContext *ctx, PayloadContext *data, RTPDynamicProtocolHandler ff_mpegts_dynamic_handler = { .codec_type = AVMEDIA_TYPE_DATA, + .priv_data_size = sizeof(PayloadContext), .parse_packet = mpegts_handle_packet, - .alloc = mpegts_new_context, .init = mpegts_init, .free = mpegts_free_context, .static_payload_id = 33, |