diff options
author | Laurent Aimar <fenrir@videolan.org> | 2011-09-12 20:50:34 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-03 03:27:39 +0100 |
commit | 2e17744a90d8ea040bf55f9b77bab2e6e17e4db9 (patch) | |
tree | 37e1bc0978e237ae0915d34301689716713dab52 /libavformat | |
parent | 19431d4d4ee2bb727d3810d40db846bb82dba658 (diff) | |
download | ffmpeg-2e17744a90d8ea040bf55f9b77bab2e6e17e4db9.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>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/smacker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/smacker.c b/libavformat/smacker.c index fa4f6312c5..a34dfde75c 100644 --- a/libavformat/smacker.c +++ b/libavformat/smacker.c @@ -294,7 +294,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; |