Browse Source

avcodec/cfhd: only increase s->level if transform is supported

tags/n4.4
Paul B Mahol 4 years ago
parent
commit
f975cf7cc0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/cfhd.c

+ 1
- 1
libavcodec/cfhd.c View File

@@ -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;


Loading…
Cancel
Save