MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_aac_decode_init_fixed

Function ff_aac_decode_init_fixed

libavcodec/aac/aacdec_fixed.c:87–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85#include "aacdec_proc_template.c"
86
87av_cold int ff_aac_decode_init_fixed(AVCodecContext *avctx)
88{
89 static AVOnce init_fixed_once = AV_ONCE_INIT;
90 AACDecContext *ac = avctx->priv_data;
91
92 ac->is_fixed = 1;
93 avctx->sample_fmt = AV_SAMPLE_FMT_S32P;
94
95 aac_dsp_init_fixed(&ac->dsp);
96 aac_proc_init_fixed(&ac->proc);
97
98 ac->fdsp = avpriv_alloc_fixed_dsp(avctx->flags & AV_CODEC_FLAG_BITEXACT);
99 if (!ac->fdsp)
100 return AVERROR(ENOMEM);
101
102 ff_thread_once(&init_fixed_once, init_tables_fixed_fn);
103
104 return ff_aac_decode_init(avctx);
105}

Callers

nothing calls this directly

Calls 3

avpriv_alloc_fixed_dspFunction · 0.85
ff_thread_onceFunction · 0.85
ff_aac_decode_initFunction · 0.85

Tested by

no test coverage detected