Lines Matching defs:avctx
43 static av_cold int fastaudio_init(AVCodecContext *avctx)
45 FastAudioContext *s = avctx->priv_data;
47 avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
82 s->ch = av_calloc(avctx->ch_layout.nb_channels, sizeof(*s->ch));
108 static int fastaudio_decode(AVCodecContext *avctx, AVFrame *frame,
111 FastAudioContext *s = avctx->priv_data;
116 subframes = pkt->size / (40 * avctx->ch_layout.nb_channels);
118 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
124 for (int channel = 0; channel < avctx->ch_layout.nb_channels; channel++) {
181 static av_cold int fastaudio_close(AVCodecContext *avctx)
183 FastAudioContext *s = avctx->priv_data;