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_hevc.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'libavformat/rtpdec_hevc.c') diff --git a/libavformat/rtpdec_hevc.c b/libavformat/rtpdec_hevc.c index 518cfa8a8c..5d99e6a74a 100644 --- a/libavformat/rtpdec_hevc.c +++ b/libavformat/rtpdec_hevc.c @@ -43,16 +43,6 @@ struct PayloadContext { static const uint8_t start_sequence[] = { 0x00, 0x00, 0x00, 0x01 }; -static av_cold PayloadContext *hevc_new_context(void) -{ - return av_mallocz(sizeof(PayloadContext)); -} - -static av_cold void hevc_free_context(PayloadContext *data) -{ - av_free(data); -} - static av_cold int hevc_sdp_parse_fmtp_config(AVFormatContext *s, AVStream *stream, PayloadContext *hevc_data, @@ -405,8 +395,7 @@ RTPDynamicProtocolHandler ff_hevc_dynamic_handler = { .codec_type = AVMEDIA_TYPE_VIDEO, .codec_id = AV_CODEC_ID_HEVC, .need_parsing = AVSTREAM_PARSE_FULL, + .priv_data_size = sizeof(PayloadContext), .parse_sdp_a_line = hevc_parse_sdp_line, - .alloc = hevc_new_context, - .free = hevc_free_context, .parse_packet = hevc_handle_packet, }; -- cgit v1.2.3