Lines Matching defs:avctx
64 static av_cold int truespeech_decode_init(AVCodecContext * avctx)
66 TSContext *c = avctx->priv_data;
68 if (avctx->ch_layout.nb_channels != 1) {
69 avpriv_request_sample(avctx, "Channel count %d", avctx->ch_layout.nb_channels);
73 av_channel_layout_uninit(&avctx->ch_layout);
74 avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
75 avctx->sample_fmt = AV_SAMPLE_FMT_S16;
309 static int truespeech_decode_frame(AVCodecContext *avctx, AVFrame *frame,
314 TSContext *c = avctx->priv_data;
323 av_log(avctx, AV_LOG_ERROR,
330 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)