diff options
author | Vodyannikov Aleksandr <Aleksoid1978@mail.ru> | 2017-07-21 12:49:45 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-07-23 15:58:29 +0300 |
commit | 47c93657249f1a4bc8a7aaf2f9f3a33510bee38c (patch) | |
tree | 31df57fe2140ce8e26f2a4bb14d642a4aceacf5a /libavcodec/cfhd.c | |
parent | dd4b7badb416a5c2688da7310a7fe80fe4e4f209 (diff) |
avcodec/cfhd: Fix decoding regression due to height check
Fixes: Ticket6546
Regression since: 54aaadf648073149f1ac34f56cbde4e6c5aa22ef
Reviewed-by: Muhammad Faiz <mfcc64@gmail.com>
Reviewed-by: Kieran Kunhya <kierank@obe.tv>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/cfhd.c')
-rw-r--r-- | libavcodec/cfhd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index f78bad9ae1..5ea8f24821 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -332,7 +332,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame, s->plane[s->channel_num].band[0][0].stride = data; } else if (tag == 28) { av_log(avctx, AV_LOG_DEBUG, "Lowpass height %"PRIu16"\n", data); - if (data < 3 || data > s->plane[s->channel_num].band[0][0].height) { + if (data < 3 || data > s->plane[s->channel_num].band[0][0].a_height) { av_log(avctx, AV_LOG_ERROR, "Invalid lowpass height\n"); ret = AVERROR(EINVAL); break; |