From: Laurent Aimar Date: Mon, 12 Sep 2011 18:50:34 +0000 (+0200) Subject: Fixed off by one packet size allocation in the smacker demuxer. X-Git-Tag: v0.8b1~1522 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a92d0fa5d234582583d41b67dddecffc2c819573;p=platform%2Fupstream%2Flibav.git Fixed off by one packet size allocation in the smacker demuxer. Signed-off-by: Martin Storsjö --- diff --git a/libavformat/smacker.c b/libavformat/smacker.c index cff1af6..995ef41 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;