diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-29 18:54:27 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-29 18:54:27 +0100 |
commit | cae851c78921affbd178b1eb522fbf619715c1c4 (patch) | |
tree | cb1f2f474c9d37113bb3d1fc4ca162c969a9a69e /libavcodec/ac3enc_float.c | |
parent | 5bf4cd8e5b77a975b3c9ef43892a0a6ae65e3b44 (diff) | |
download | ffmpeg-cae851c78921affbd178b1eb522fbf619715c1c4.tar.gz |
avcodec/ac3enc: Use avpriv_float_dsp_alloc()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ac3enc_float.c')
-rw-r--r-- | libavcodec/ac3enc_float.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c index fa6e50981b..766b14ec13 100644 --- a/libavcodec/ac3enc_float.c +++ b/libavcodec/ac3enc_float.c @@ -139,7 +139,9 @@ static CoefType calc_cpl_coord(CoefSumType energy_ch, CoefSumType energy_cpl) av_cold int ff_ac3_float_encode_init(AVCodecContext *avctx) { AC3EncodeContext *s = avctx->priv_data; - avpriv_float_dsp_init(&s->fdsp, avctx->flags & CODEC_FLAG_BITEXACT); + s->fdsp = avpriv_float_dsp_alloc(avctx->flags & CODEC_FLAG_BITEXACT); + if (!s->fdsp) + return AVERROR(ENOMEM); return ff_ac3_encode_init(avctx); } |