From 247764a592f83521f9c1ccdc900b00a8b84f3c87 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 23 Feb 2015 22:03:44 +0200 Subject: rtpdec_h264: Remove unnecessary struct padding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There's no point in adding padding in the allocation of a depacketizer specific context struct. Signed-off-by: Martin Storsjö --- libavformat/rtpdec_h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/rtpdec_h264.c') diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c index 13dd7e9ccd..b6f2444f59 100644 --- a/libavformat/rtpdec_h264.c +++ b/libavformat/rtpdec_h264.c @@ -346,7 +346,7 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data, static PayloadContext *h264_new_context(void) { - return av_mallocz(sizeof(PayloadContext) + FF_INPUT_BUFFER_PADDING_SIZE); + return av_mallocz(sizeof(PayloadContext)); } static void h264_free_context(PayloadContext *data) -- cgit v1.2.3