[FFmpeg-cvslog] 4xm decoder: fix data size for i2 frames.
Michael Niedermayer
git at videolan.org
Sun Oct 2 05:59:53 CEST 2011
ffmpeg | branch: release/0.8 | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 2 03:40:26 2011 +0200| [55a070870facd6bc72f9b943baba2833ce24f075] | committer: Michael Niedermayer
4xm decoder: fix data size for i2 frames.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 0a19b4b0bae772cac7f8341e94c319c96356ee69)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=55a070870facd6bc72f9b943baba2833ce24f075
---
libavcodec/4xm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 92717d0..98169fd 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -829,7 +829,7 @@ static int decode_frame(AVCodecContext *avctx,
if(frame_4cc == AV_RL32("ifr2")){
p->pict_type= AV_PICTURE_TYPE_I;
- if(decode_i2_frame(f, buf-4, frame_size) < 0){
+ if(decode_i2_frame(f, buf-4, frame_size+4) < 0){
av_log(f->avctx, AV_LOG_ERROR, "decode i2 frame failed\n");
return -1;
}
More information about the ffmpeg-cvslog
mailing list