Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0a19b4b0bae772cac7f8341e94c319c96356ee69)
... | ... |
@@ -829,7 +829,7 @@ static int decode_frame(AVCodecContext *avctx, |
829 | 829 |
|
830 | 830 |
if(frame_4cc == AV_RL32("ifr2")){ |
831 | 831 |
p->pict_type= AV_PICTURE_TYPE_I; |
832 |
- if(decode_i2_frame(f, buf-4, frame_size) < 0){ |
|
832 |
+ if(decode_i2_frame(f, buf-4, frame_size+4) < 0){ |
|
833 | 833 |
av_log(f->avctx, AV_LOG_ERROR, "decode i2 frame failed\n"); |
834 | 834 |
return -1; |
835 | 835 |
} |