Module: libav Branch: release/0.6 Commit: 9f28eede5e56033a6f5a4fa4bece97111701d2db
Author: Laurent Aimar <[email protected]> Committer: Reinhard Tartler <[email protected]> Date: Mon Sep 12 20:50:34 2011 +0200 Fixed off by one packet size allocation in the smacker demuxer. Signed-off-by: Martin Storsjö <[email protected]> (cherry picked from commit a92d0fa5d234582583d41b67dddecffc2c819573) Signed-off-by: Anton Khirnov <[email protected]> Signed-off-by: Reinhard Tartler <[email protected]> --- libavformat/smacker.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/smacker.c b/libavformat/smacker.c index a916a7b..5cefe7b 100644 --- a/libavformat/smacker.c +++ b/libavformat/smacker.c @@ -308,7 +308,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; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
