Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2018-08-28 01:12:36 +0300
committerRostislav Pehlivanov <atomnuker@gmail.com>2018-08-28 01:18:03 +0300
commit6213cf73945db1dd488ec51d6c4214b496833d7b (patch)
treef8eb13f7ef9155333d1d1fe68694e03370a3f352 /libavcodec/atrac9dec.c
parente13e52fd0de68f2805e2e8a83d00ee28f9000c8a (diff)
atrac9dec: relax gradient value requirements
Unlike the range, the gradient start value does not have to be lower than the end value. Does allow more files to be correctly decoded without errors. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/atrac9dec.c')
-rw-r--r--libavcodec/atrac9dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac9dec.c b/libavcodec/atrac9dec.c
index 629757f63d..28f8fef174 100644
--- a/libavcodec/atrac9dec.c
+++ b/libavcodec/atrac9dec.c
@@ -123,7 +123,7 @@ static inline int parse_gradient(ATRAC9Context *s, ATRAC9BlockData *b,
if (grad_range[0] >= grad_range[1] || grad_range[1] > 47)
return AVERROR_INVALIDDATA;
- if (grad_value[0] >= grad_value[1] || grad_value[1] >= 32)
+ if (grad_value[0] > 31 || grad_value[1] > 31)
return AVERROR_INVALIDDATA;
if (b->grad_boundary > b->q_unit_cnt)