diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-04-22 21:41:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-04-22 21:41:08 +0000 |
commit | 25ef43bb289a3a3a717a684902c0a310e292beba (patch) | |
tree | 1ceb7437465179869e5d73ae9d2496137ef04373 /libavcodec/mpeg12.c | |
parent | 6c08a05743691fb9eb6affc2651d7aa9c748ff7f (diff) | |
download | ffmpeg-25ef43bb289a3a3a717a684902c0a310e292beba.tar.gz |
corrupted field pictures segfault fix
Originally committed as revision 3040 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 639ea365d6..d3ff54a7ab 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2250,8 +2250,8 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y, s->resync_mb_x= s->resync_mb_y= -1; - if (mb_y >= s->mb_height){ - av_log(s->avctx, AV_LOG_ERROR, "slice below image (%d >= %d)\n", s->mb_y, s->mb_height); + if (mb_y<<field_pic >= s->mb_height){ + av_log(s->avctx, AV_LOG_ERROR, "slice below image (%d >= %d)\n", mb_y, s->mb_height); return -1; } |