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

Function ff_ac3_float_encode_init

libavcodec/ac3enc_float.c:97–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96
97av_cold int ff_ac3_float_encode_init(AVCodecContext *avctx)
98{
99 AC3EncodeContext *s = avctx->priv_data;
100 int ret;
101
102 s->encode_frame = encode_frame;
103 s->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);
104 if (!s->fdsp)
105 return AVERROR(ENOMEM);
106
107 ret = ac3_float_mdct_init(s);
108 if (ret < 0)
109 return ret;
110
111 return ff_ac3_encode_init(avctx);
112}
113
114const FFCodec ff_ac3_encoder = {
115 .p.name = "ac3",

Callers 1

eac3_encode_initFunction · 0.85

Calls 3

avpriv_float_dsp_allocFunction · 0.85
ac3_float_mdct_initFunction · 0.85
ff_ac3_encode_initFunction · 0.85

Tested by

no test coverage detected