Lines Matching defs:avctx
116 static av_cold int g723_1_decode_init(AVCodecContext *avctx)
118 G723_1_Context *s = avctx->priv_data;
120 avctx->sample_fmt = AV_SAMPLE_FMT_S16P;
121 if (avctx->ch_layout.nb_channels < 1 || avctx->ch_layout.nb_channels > 2) {
122 av_log(avctx, AV_LOG_ERROR, "Only mono and stereo are supported (requested channels: %d).\n",
123 avctx->ch_layout.nb_channels);
126 for (int ch = 0; ch < avctx->ch_layout.nb_channels; ch++) {
928 static int g723_1_decode_frame(AVCodecContext *avctx, AVFrame *frame,
931 G723_1_Context *s = avctx->priv_data;
935 int channels = avctx->ch_layout.nb_channels;
946 av_log(avctx, AV_LOG_WARNING,
954 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)