[FFmpeg-devel] [PATCH] Revert "avcodec/alsdec: check predictor order against block length"

Paul B Mahol onemda at gmail.com
Fri Jun 30 18:31:48 EEST 2017


This reverts commit 18f94df8af04f2c02a25a7dec512289feff6517f.

Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/alsdec.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index d95e30d..209feb8 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -705,11 +705,7 @@ 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) {
-- 
2.9.3



More information about the ffmpeg-devel mailing list