X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fac3enc.c;h=e5dea46275af53fb7c24f722e61b2bb2b6e90026;hb=e1a983e6010930ab742bede275de1ccf921485b7;hp=e04e70d8bca905e6cd6727d960d23d001642a09c;hpb=35e0496a7bb7243ce3574ab971bd489c7f7a0876;p=ffmpeg diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index e04e70d8bca..e5dea46275a 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -2427,7 +2427,7 @@ av_cold int ff_ac3_encode_init(AVCodecContext *avctx) s->avctx = avctx; - s->eac3 = avctx->codec_id == CODEC_ID_EAC3; + s->eac3 = avctx->codec_id == AV_CODEC_ID_EAC3; ff_ac3_common_init(); @@ -2491,6 +2491,7 @@ av_cold int ff_ac3_encode_init(AVCodecContext *avctx) #endif ff_dsputil_init(&s->dsp, avctx); + avpriv_float_dsp_init(&s->fdsp, avctx->flags & CODEC_FLAG_BITEXACT); ff_ac3dsp_init(&s->ac3dsp, avctx->flags & CODEC_FLAG_BITEXACT); dprint_options(s);