aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-02 03:40:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-02 03:40:26 +0200
commit0a19b4b0bae772cac7f8341e94c319c96356ee69 (patch)
tree82c238fd72e99f00e29ae737efb3a6f94b9d75df /libavcodec
parent1008f639e2ebaa2b3d48ac765ca49c8869042d75 (diff)
downloadffmpeg-0a19b4b0bae772cac7f8341e94c319c96356ee69.tar.gz
4xm decoder: fix data size for i2 frames.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/4xm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 6038e830a8..94cfb82668 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;
}