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_h261.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libavformat/rtpdec_h261.c') diff --git a/libavformat/rtpdec_h261.c b/libavformat/rtpdec_h261.c index 5972a14b6c..dac76c8ad7 100644 --- a/libavformat/rtpdec_h261.c +++ b/libavformat/rtpdec_h261.c @@ -32,11 +32,6 @@ struct PayloadContext { uint32_t timestamp; }; -static av_cold PayloadContext *h261_new_context(void) -{ - return av_mallocz(sizeof(PayloadContext)); -} - static void h261_free_dyn_buffer(AVIOContext **dyn_buf) { uint8_t *ptr_dyn_buffer; @@ -184,7 +179,7 @@ RTPDynamicProtocolHandler ff_h261_dynamic_handler = { .codec_type = AVMEDIA_TYPE_VIDEO, .codec_id = AV_CODEC_ID_H261, .need_parsing = AVSTREAM_PARSE_FULL, - .alloc = h261_new_context, + .priv_data_size = sizeof(PayloadContext), .free = h261_free_context, .parse_packet = h261_handle_packet, .static_payload_id = 31, -- cgit v1.2.3