summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-06-17 23:46:11 +0200
committerAnton Khirnov <anton@khirnov.net>2016-07-25 13:57:01 +0200
commit697e9ea56ccb1d59321f6eaa1709943833d4fac6 (patch)
treeb2607ad4f8e9b6210ca2604d9268a1e6c69f2d2c
parent1713d15e2f2644a00be257b5e390ef36271ebc91 (diff)
cfhd: Reduce the scope of a variable
-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;