summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-03-17 17:02:16 -0300
committerJames Almer <jamrial@gmail.com>2015-03-17 19:25:55 -0300
commitbf2bd5b807bc3b4d5d61b0fac584701b42479b40 (patch)
tree93e0fb7cf96c53532138c667e9b9a3185cae1371 /libavcodec/ac3dec.c
parent0b961423ee9fc5362956cc92f2189289060b6953 (diff)
downloadffmpeg-bf2bd5b807bc3b4d5d61b0fac584701b42479b40.tar.gz
avcodec/ac3dec_fixed: fix compilation when ac3dec is disabled
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r--libavcodec/ac3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 4e6e124d86..e3bf2922eb 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -196,10 +196,10 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx)
s->fdsp = avpriv_alloc_fixed_dsp(avctx->flags & CODEC_FLAG_BITEXACT);
#else
s->fdsp = avpriv_float_dsp_alloc(avctx->flags & CODEC_FLAG_BITEXACT);
+ ff_fmt_convert_init(&s->fmt_conv, avctx);
#endif
ff_ac3dsp_init(&s->ac3dsp, avctx->flags & CODEC_FLAG_BITEXACT);
- ff_fmt_convert_init(&s->fmt_conv, avctx);
av_lfg_init(&s->dith_state, 0);
if (USE_FIXED)