Lines Matching defs:avctx
55 AVCodecContext *avctx,
66 if (!avctx->ch_layout.nb_channels) {
67 av_channel_layout_uninit(&avctx->ch_layout);
68 avctx->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
76 for (ch = s->current_channel; ch < avctx->ch_layout.nb_channels; ch++) {
82 if (avctx->codec_id == AV_CODEC_ID_AMR_NB) {
84 } else if (avctx->codec_id == AV_CODEC_ID_AMR_WB) {
99 s->current_channel = ch % avctx->ch_layout.nb_channels;
107 avctx->bit_rate = s->cumulated_size / ++s->block_count * 8 * 50;
118 s1->duration = avctx->codec_id == AV_CODEC_ID_AMR_NB ? 160 : 320;