ffmpeg | branch: master | Martin Storsjö <mar...@martin.st> | Mon Feb 23 
22:03:44 2015 +0200| [247764a592f83521f9c1ccdc900b00a8b84f3c87] | committer: 
Martin Storsjö

rtpdec_h264: Remove unnecessary struct padding

There's no point in adding padding in the allocation of a depacketizer
specific context struct.

Signed-off-by: Martin Storsjö <mar...@martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=247764a592f83521f9c1ccdc900b00a8b84f3c87
---

 libavformat/rtpdec_h264.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpdec_h264.c b/libavformat/rtpdec_h264.c
index 13dd7e9..b6f2444 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)

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to