1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

libavcodec/als: fix address sanitization error in decoder

Signed-off-by: Umair Khan <omerjerk@gmail.com>
This commit is contained in:
Umair Khan 2017-11-13 11:07:42 +05:30 committed by Carl Eugen Hoyos
parent e510a8251b
commit 55937bb4a7

View File

@ -920,7 +920,7 @@ static int decode_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
// reconstruct all samples from residuals
if (bd->ra_block) {
for (smp = 0; smp < opt_order; smp++) {
for (smp = 0; smp < FFMIN(opt_order, block_length); smp++) {
y = 1 << 19;
for (sb = 0; sb < smp; sb++)