diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-13 03:21:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-13 03:32:38 +0200 |
commit | 9f9307ff2a6cc769abea857a1c8535a3991bfe2c (patch) | |
tree | 089272658f95d6a70fb5d6ee92ade1d846a9d56a /libavcodec/rv30.c | |
parent | 3f010421421ff0af916cf16313a111dae71f837d (diff) | |
download | ffmpeg-9f9307ff2a6cc769abea857a1c8535a3991bfe2c.tar.gz |
rv30_decode_intra_types: make check tighter
This makes no differnce as the affected values cannot occur
But it will likely help static analyzers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/rv30.c')
-rw-r--r-- | libavcodec/rv30.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv30.c b/libavcodec/rv30.c index b033d1c425..df2160ab94 100644 --- a/libavcodec/rv30.c +++ b/libavcodec/rv30.c @@ -79,7 +79,7 @@ static int rv30_decode_intra_types(RV34DecContext *r, GetBitContext *gb, int8_t for(i = 0; i < 4; i++, dst += r->intra_types_stride - 4){ for(j = 0; j < 4; j+= 2){ int code = svq3_get_ue_golomb(gb) << 1; - if(code >= 81U*2U){ + if(code > 80U*2U){ av_log(r->s.avctx, AV_LOG_ERROR, "Incorrect intra prediction code\n"); return -1; } |