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_h263_rfc2190.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libavformat/rtpdec_h263_rfc2190.c') diff --git a/libavformat/rtpdec_h263_rfc2190.c b/libavformat/rtpdec_h263_rfc2190.c index e4e4e21ff9..a7e8287f11 100644 --- a/libavformat/rtpdec_h263_rfc2190.c +++ b/libavformat/rtpdec_h263_rfc2190.c @@ -39,11 +39,6 @@ struct PayloadContext { int newformat; }; -static PayloadContext *h263_new_context(void) -{ - return av_mallocz(sizeof(PayloadContext)); -} - static void h263_free_context(PayloadContext *data) { if (!data) @@ -202,7 +197,7 @@ RTPDynamicProtocolHandler ff_h263_rfc2190_dynamic_handler = { .codec_id = AV_CODEC_ID_H263, .need_parsing = AVSTREAM_PARSE_FULL, .parse_packet = h263_handle_packet, - .alloc = h263_new_context, + .priv_data_size = sizeof(PayloadContext), .free = h263_free_context, .static_payload_id = 34, }; -- cgit v1.2.3