Commit 55937bb4 authored by Umair Khan's avatar Umair Khan Committed by Carl Eugen Hoyos

libavcodec/als: fix address sanitization error in decoder

Signed-off-by: 's avatarUmair Khan <omerjerk@gmail.com>
parent e510a825
...@@ -920,7 +920,7 @@ static int decode_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) ...@@ -920,7 +920,7 @@ static int decode_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
// reconstruct all samples from residuals // reconstruct all samples from residuals
if (bd->ra_block) { if (bd->ra_block) {
for (smp = 0; smp < opt_order; smp++) { for (smp = 0; smp < FFMIN(opt_order, block_length); smp++) {
y = 1 << 19; y = 1 << 19;
for (sb = 0; sb < smp; sb++) for (sb = 0; sb < smp; sb++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment