aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorLaurent Aimar <fenrir@videolan.org>2011-09-12 20:50:34 +0200
committerMartin Storsjö <martin@martin.st>2011-09-12 23:44:51 +0300
commita92d0fa5d234582583d41b67dddecffc2c819573 (patch)
tree23feaec6ab9e28c13d11c1b4d2d4a97ef493a083 /libavformat
parente055932f5636a82275837968eea9c8fcb5bca474 (diff)
downloadffmpeg-a92d0fa5d234582583d41b67dddecffc2c819573.tar.gz
Fixed off by one packet size allocation in the smacker demuxer.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/smacker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/smacker.c b/libavformat/smacker.c
index cff1af6eee..995ef41a4e 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;