diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index 17ddcdd2df..aae6bd78db 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -436,7 +436,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame, } init_plane_defaults(s); } else if (tag == SubbandNumber) { - if (s->subband_num != 0 && data == 1) // hack + if (s->subband_num != 0 && data == 1 && (s->transform_type == 0 || s->transform_type == 2)) // hack s->level++; av_log(avctx, AV_LOG_DEBUG, "Subband number %"PRIu16"\n", data); s->subband_num = data;