| 162 | #include "aacdec_proc_template.c" |
| 163 | |
| 164 | av_cold int ff_aac_decode_init_float(AVCodecContext *avctx) |
| 165 | { |
| 166 | static AVOnce init_float_once = AV_ONCE_INIT; |
| 167 | AACDecContext *ac = avctx->priv_data; |
| 168 | |
| 169 | ac->is_fixed = 0; |
| 170 | avctx->sample_fmt = AV_SAMPLE_FMT_FLTP; |
| 171 | |
| 172 | aac_dsp_init(&ac->dsp); |
| 173 | aac_proc_init(&ac->proc); |
| 174 | |
| 175 | ac->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT); |
| 176 | if (!ac->fdsp) |
| 177 | return AVERROR(ENOMEM); |
| 178 | |
| 179 | ff_thread_once(&init_float_once, init_tables_float_fn); |
| 180 | |
| 181 | return ff_aac_decode_init(avctx); |
| 182 | } |
no test coverage detected