Lines Matching defs:avctx
96 av_log(s->avctx, AV_LOG_ERROR, "Wrong number of flushed samples: %d\n",
103 av_log(s->avctx, AV_LOG_ERROR, "Wrong number of CELT delay samples.\n");
138 av_log(s->avctx, AV_LOG_ERROR, "Error opening the resampler.\n");
146 av_log(s->avctx, AV_LOG_ERROR,
170 av_log(s->avctx, AV_LOG_ERROR, "Error decoding the redundancy frame.\n");
199 av_log(s->avctx, AV_LOG_ERROR, "Error decoding a SILK frame.\n");
206 av_log(s->avctx, AV_LOG_ERROR, "Error resampling SILK data.\n");
230 av_log(s->avctx, AV_LOG_ERROR, "Invalid redundancy frame size.\n");
261 av_log(s->avctx, AV_LOG_WARNING,
264 if (s->avctx->err_recognition & AV_EF_EXPLODE)
376 av_log(s->avctx, AV_LOG_ERROR, "Error flushing the resampler.\n");
393 av_log(s->avctx, AV_LOG_ERROR, "Error decoding an Opus frame.\n");
394 if (s->avctx->err_recognition & AV_EF_EXPLODE)
415 static int opus_decode_packet(AVCodecContext *avctx, AVFrame *frame,
418 OpusContext *c = avctx->priv_data;
440 av_log(avctx, AV_LOG_ERROR, "Error parsing the packet header.\n");
456 ret = ff_get_buffer(avctx, frame, 0);
461 for (i = 0; i < avctx->ch_layout.nb_channels; i++) {
506 av_log(avctx, AV_LOG_ERROR, "Error parsing the packet header.\n");
510 av_log(avctx, AV_LOG_ERROR,
544 for (i = 0; i < avctx->ch_layout.nb_channels; i++) {
590 static av_cold int opus_decode_close(AVCodecContext *avctx)
592 OpusContext *c = avctx->priv_data;
619 static av_cold int opus_decode_init(AVCodecContext *avctx)
621 OpusContext *c = avctx->priv_data;
624 avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
625 avctx->sample_rate = 48000;
632 ret = ff_opus_parse_extradata(avctx, c);
649 s->avctx = avctx;
664 av_opt_set_int(s->swr, "in_sample_fmt", avctx->sample_fmt, 0);
665 av_opt_set_int(s->swr, "out_sample_fmt", avctx->sample_fmt, 0);
668 av_opt_set_int(s->swr, "out_sample_rate", avctx->sample_rate, 0);
671 ret = ff_silk_init(avctx, &s->silk, s->output_channels);
675 ret = ff_celt_init(avctx, &s->celt, s->output_channels, c->apply_phase_inv);
679 s->celt_delay = av_audio_fifo_alloc(avctx->sample_fmt,
684 s->sync_buffer = av_audio_fifo_alloc(avctx->sample_fmt,