diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2011-05-05 05:45:36 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-06 02:30:03 +0400 |
commit | 0fa8d19987f03444365a5c7f73b7ecf1520b011e (patch) | |
tree | 47f47d49410f78ea6ec2496b87d20f3652744f7d /libavcodec/svq3.c | |
parent | 6c2845600d984d75c4d22a2f4b9cb1c628babb78 (diff) |
In svq3 decoder, check negative mb_type, fix potential crash.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r-- | libavcodec/svq3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index 16f483432f..75166066ff 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -1049,7 +1049,7 @@ static int svq3_decode_frame(AVCodecContext *avctx, } else if (s->pict_type == AV_PICTURE_TYPE_B && mb_type >= 4) { mb_type += 4; } - if (mb_type > 33 || svq3_decode_mb(svq3, mb_type)) { + if ((unsigned)mb_type > 33 || svq3_decode_mb(svq3, mb_type)) { av_log(h->s.avctx, AV_LOG_ERROR, "error while decoding MB %d %d\n", s->mb_x, s->mb_y); return -1; } |