diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-03-05 17:03:32 -0800 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-03-06 10:47:42 -0800 |
commit | 11b940a1a8e7e5d5b212935a3ce78aeda577f5f2 (patch) | |
tree | 2742df71f4cc98109b0c0ccf187acbda7b60cd0d | |
parent | c23acbaed40101c677dfcfbbfe0d2c230a8e8f44 (diff) | |
download | ffmpeg-11b940a1a8e7e5d5b212935a3ce78aeda577f5f2.tar.gz |
svq3: protect against negative quantizers.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
-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 caafc49969..99c1dec07c 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -650,7 +650,7 @@ static int svq3_decode_mb(SVQ3Context *svq3, unsigned int mb_type) if (IS_INTRA16x16(mb_type) || (s->pict_type != AV_PICTURE_TYPE_I && s->adaptive_quant && cbp)) { s->qscale += svq3_get_se_golomb(&s->gb); - if (s->qscale > 31){ + if (s->qscale > 31u){ av_log(h->s.avctx, AV_LOG_ERROR, "qscale:%d\n", s->qscale); return -1; } |