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

libavcodec/als: remove check for predictor order of a block

Reverts commit 18f94df8, fixes ticket #5297.
Signed-off-by: 's avatarUmair Khan <omerjerk@gmail.com>
parent a6fdd75f
...@@ -704,11 +704,6 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) ...@@ -704,11 +704,6 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
} else { } else {
*bd->opt_order = sconf->max_order; *bd->opt_order = sconf->max_order;
} }
if (*bd->opt_order > bd->block_length) {
*bd->opt_order = bd->block_length;
av_log(avctx, AV_LOG_ERROR, "Predictor order too large.\n");
return AVERROR_INVALIDDATA;
}
opt_order = *bd->opt_order; opt_order = *bd->opt_order;
if (opt_order) { if (opt_order) {
......
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