summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2016-06-20 13:48:06 -0400
committerAnton Khirnov <anton@khirnov.net>2016-07-25 13:57:02 +0200
commite55bf763bce1317252a13116080f1c7898dcb46c (patch)
treec99f1dd621e4c7f3e42a8f00e32c2c07c06088f5
parentda76299272e4cfda6aaa4b136f92f7829c82fa1a (diff)
cfhd: Move init function closer to close one
-rw-r--r--libavcodec/cfhd.c20
1 files 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;