Lines Matching refs:avctx
56 static av_cold int g722_decode_init(AVCodecContext * avctx)
58 G722Context *c = avctx->priv_data;
60 if (avctx->channels != 1) {
61 av_log(avctx, AV_LOG_ERROR, "Only mono tracks are allowed.\n");
64 avctx->sample_fmt = AV_SAMPLE_FMT_S16;
71 avctx->coded_frame = &c->frame;
87 static int g722_decode_frame(AVCodecContext *avctx, void *data,
90 G722Context *c = avctx->priv_data;
99 if ((ret = avctx->get_buffer(avctx, &c->frame)) < 0) {
100 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");