[FFmpeg-cvslog] cook: tighten the quant_index_table range further.
Michael Niedermayer
git at videolan.org
Sat Mar 10 08:20:16 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Mar 10 08:04:34 2012 +0100| [f7b57add8ee0cb234617ca1c86e2d334b50fdc38] | committer: Michael Niedermayer
cook: tighten the quant_index_table range further.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f7b57add8ee0cb234617ca1c86e2d334b50fdc38
---
libavcodec/cook.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index fbd910e..db4245c 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -389,7 +389,7 @@ static int decode_envelope(COOKContext *q, COOKSubpacket *p,
q->envelope_quant_index[vlc_index - 1].bits, 2);
quant_index_table[i] = quant_index_table[i - 1] + j - 12; // differential encoding
- if (quant_index_table[i] < -63 || quant_index_table[i] > 64) {
+ if (quant_index_table[i] < -63 || quant_index_table[i] > 63) {
av_log(NULL, AV_LOG_ERROR, "quant_index_table value out of bounds\n");
return AVERROR_INVALIDDATA;
}
More information about the ffmpeg-cvslog
mailing list