Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-05 02:12:58 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-03-05 02:13:26 +0400
commit33a183df46355e4b281517e14c9b3c7e2b558dcf (patch)
treebadd04c0d5081a88614a38c1fb93aae2922a037a /libavcodec/indeo3.c
parent56ffa3fefb22605ac6507efa046ebddc38301521 (diff)
indeo3: Fix overreading requant_tab.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/indeo3.c')
-rw-r--r--libavcodec/indeo3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c
index 54389a1abf..a87252a46a 100644
--- a/libavcodec/indeo3.c
+++ b/libavcodec/indeo3.c
@@ -622,7 +622,7 @@ static int decode_cell(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
/* of the predicted cell in order to avoid overflows. */
if (vq_index >= 8 && ref_block) {
for (x = 0; x < cell->width << 2; x++)
- ref_block[x] = requant_tab[vq_index & 7][ref_block[x]];
+ ref_block[x] = requant_tab[vq_index & 7][ref_block[x] & 127];
}
error = IV3_NOERR;