diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-26 20:56:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-26 20:56:31 +0200 |
commit | ebfe154bd52204a4da19d26d8d5ae0f8003558ac (patch) | |
tree | 7c884a98ace4da71870bbe3619d9cdf2719ca782 /libavcodec/apedec.c | |
parent | 669a09fb372fa58ff913ebc326cb64bb3e8e7928 (diff) | |
download | ffmpeg-ebfe154bd52204a4da19d26d8d5ae0f8003558ac.tar.gz |
avcodec/apedec: tmpk==32 is not supported, prevent undefined behavior
Fixes CID1206639
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/apedec.c')
-rw-r--r-- | libavcodec/apedec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c index 7e1c6bb6cd..1fd41cdd9d 100644 --- a/libavcodec/apedec.c +++ b/libavcodec/apedec.c @@ -529,7 +529,7 @@ static inline int ape_decode_value_3900(APEContext *ctx, APERice *rice) return AVERROR_INVALIDDATA; } x = range_decode_bits(ctx, tmpk); - } else if (tmpk <= 32) { + } else if (tmpk <= 31) { x = range_decode_bits(ctx, 16); x |= (range_decode_bits(ctx, tmpk - 16) << 16); } else { |