rtpdec_h264: Remove unnecessary struct padding
authorMartin Storsjö <martin@martin.st>
Mon, 23 Feb 2015 20:03:44 +0000 (22:03 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 24 Feb 2015 14:20:44 +0000 (16:20 +0200)
There's no point in adding padding in the allocation of a depacketizer
specific context struct.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpdec_h264.c

index 13dd7e9..b6f2444 100644 (file)
@@ -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)