[FFmpeg-cvslog] Fixed off by one packet size allocation in the smacker demuxer.

Laurent Aimar git at videolan.org
Sat Oct 1 22:47:32 CEST 2011


ffmpeg | branch: release/0.8 | Laurent Aimar <fenrir at videolan.org> | Mon Sep 12 20:50:34 2011 +0200| [9f391c4971d4ce2e849a6465a19d1f9da1488194] | committer: Reinhard Tartler

Fixed off by one packet size allocation in the smacker demuxer.

Signed-off-by: Martin Storsjö <martin at martin.st>
(cherry picked from commit a92d0fa5d234582583d41b67dddecffc2c819573)

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavformat/smacker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/smacker.c b/libavformat/smacker.c
index 87c59a3..a817c31 100644
--- a/libavformat/smacker.c
+++ b/libavformat/smacker.c
@@ -306,7 +306,7 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
         }
         if (frame_size < 0)
             return AVERROR_INVALIDDATA;
-        if (av_new_packet(pkt, frame_size + 768))
+        if (av_new_packet(pkt, frame_size + 769))
             return AVERROR(ENOMEM);
         if(smk->frm_size[smk->cur_frame] & 1)
             palchange |= 2;



More information about the ffmpeg-cvslog mailing list