libavcodec/als: remove check for predictor order of a block
authorUmair Khan <omerjerk@gmail.com>
Mon, 13 Nov 2017 05:36:30 +0000 (11:06 +0530)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Thu, 16 Nov 2017 22:36:14 +0000 (23:36 +0100)
Reverts commit 18f94df8, fixes ticket #5297.

Signed-off-by: Umair Khan <omerjerk@gmail.com>
libavcodec/alsdec.c

index 13bd52f..9a72686 100644 (file)
@@ -704,11 +704,6 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
         } else {
             *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;
 
         if (opt_order) {