ffmpeg | branch: master | Rostislav Pehlivanov <atomnu...@gmail.com> | Mon Aug 27 23:12:36 2018 +0100| [6213cf73945db1dd488ec51d6c4214b496833d7b] | committer: Rostislav Pehlivanov
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 <atomnu...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6213cf73945db1dd488ec51d6c4214b496833d7b --- libavcodec/atrac9dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog