From e55bf763bce1317252a13116080f1c7898dcb46c Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Mon, 20 Jun 2016 13:48:06 -0400 Subject: cfhd: Move init function closer to close one --- libavcodec/cfhd.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index 7de1d5488f..31fbe83ec9 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -38,16 +38,6 @@ #define SUBBAND_COUNT 10 -static av_cold int cfhd_init(AVCodecContext *avctx) -{ - CFHDContext *s = avctx->priv_data; - - s->avctx = avctx; - avctx->bits_per_raw_sample = 10; - - return ff_cfhd_init_vlcs(s); -} - static void init_plane_defaults(CFHDContext *s) { s->subband_num = 0; @@ -769,6 +759,16 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame, return avpkt->size; } +static av_cold int cfhd_init(AVCodecContext *avctx) +{ + CFHDContext *s = avctx->priv_data; + + s->avctx = avctx; + avctx->bits_per_raw_sample = 10; + + return ff_cfhd_init_vlcs(s); +} + static av_cold int cfhd_close(AVCodecContext *avctx) { CFHDContext *s = avctx->priv_data; -- cgit v1.2.3