aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-09-12 20:50:34 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-13 17:25:50 +0200
commit4482ee9d9c5b6e8e12b06a208f2b7b52d0bcee81 (patch)
treec6c18a34e812e8e156d39ea195a6343a77d5b80d
parent2ac3aa129e7dbee5d6e19e27794706c8f2ee8345 (diff)
downloadffmpeg-4482ee9d9c5b6e8e12b06a208f2b7b52d0bcee81.tar.gz
Fixed off by one packet size allocation in the smacker demuxer.
Signed-off-by: Martin Storsjö <martin@martin.st> (cherry picked from commit a92d0fa5d234582583d41b67dddecffc2c819573) Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavformat/smacker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/smacker.c b/libavformat/smacker.c
index 87c59a3049..a817c31355 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;