aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUmair Khan <omerjerk@gmail.com>2017-11-13 11:06:30 +0530
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-11-16 23:36:14 +0100
commite510a8251b3fc385dfe2f0482ece5643c7d66f06 (patch)
treed8a6a5bb6334d5f064013dbe4f2beb17ec405cf9
parenta6fdd75fe6440d2f4150cb456a9078aa68b00fdb (diff)
downloadffmpeg-e510a8251b3fc385dfe2f0482ece5643c7d66f06.tar.gz
libavcodec/als: remove check for predictor order of a block
Reverts commit 18f94df8, fixes ticket #5297. Signed-off-by: Umair Khan <omerjerk@gmail.com>
-rw-r--r--libavcodec/alsdec.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 13bd52f297..9a72686413 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -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) {