diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 3a4b6ec56a..f441bd01ca 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -664,6 +664,7 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) 2, sconf->max_order + 1)); *bd->opt_order = get_bits(gb, opt_order_length); if (*bd->opt_order > sconf->max_order) { + *bd->opt_order = sconf->max_order; av_log(avctx, AV_LOG_ERROR, "Predictor order too large!\n"); return -1; }