summaryrefslogtreecommitdiff
path: root/libavcodec/cfhd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/cfhd.c')
-rw-r--r--libavcodec/cfhd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index 9e4a077d32..d98da16c5d 100644
--- a/libavcodec/cfhd.c
+++ b/libavcodec/cfhd.c
@@ -681,7 +681,6 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
GetByteContext gb;
ThreadFrame frame = { .f = data };
int ret = 0, planes, plane, got_buffer = 0;
- int16_t *coeff_data;
s->coded_format = AV_PIX_FMT_YUV422P10;
init_frame_defaults(s);
@@ -728,12 +727,12 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
s->coded_format = AV_PIX_FMT_NONE;
got_buffer = 1;
}
- coeff_data = s->plane[s->channel_num].subband[s->subband_num_actual];
if ((ret = parse_subband_tag(avctx, s, tag, data)) < 0)
break;
if (s->a_width && s->a_height) {
+ int16_t *coeff_data = s->plane[s->channel_num].subband[s->subband_num_actual];
if (tag == 4 && data == 0x0F0F) {
if ((ret = read_lowpass_coeffs(avctx, s, &gb, coeff_data)) < 0)
return ret;