summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-04-19 17:13:42 +0200
committerAnton Khirnov <anton@khirnov.net>2016-07-25 13:57:00 +0200
commit8922952496377687b311a13ad67ecf6f240e889f (patch)
treedbc032eb78ea4d3d5d2c6921193a594a09dbcf74
parent0744311c0d9a2359355310c7b19af66135f7d7c0 (diff)
cfhd: Fix the check for the lowpass height
-rw-r--r--libavcodec/cfhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index 001b7ea339..788bbe4d8d 100644
--- a/libavcodec/cfhd.c
+++ b/libavcodec/cfhd.c
@@ -306,7 +306,7 @@ static int parse_tag(AVCodecContext *avctx, CFHDContext *s, GetByteContext gb,
break;
case 28:
av_log(avctx, AV_LOG_DEBUG, "Lowpass height %"PRIu16"\n", data);
- if (data < 2 || data > s->plane[s->channel_num].band[0][0].height) {
+ if (data < 2 || data > s->plane[s->channel_num].band[0][0].a_height) {
av_log(avctx, AV_LOG_ERROR, "Invalid lowpass height\n");
return AVERROR_INVALIDDATA;
}