Lines Matching defs:avctx
31 AVCodecContext *avctx,
84 avctx->codec_id = s->codec_id;
92 if (avctx->codec_id != AV_CODEC_ID_AAC) {
93 avctx->sample_rate = s->sample_rate;
94 if (!CONFIG_EAC3_DECODER || avctx->codec_id != AV_CODEC_ID_EAC3) {
95 av_channel_layout_uninit(&avctx->ch_layout);
97 av_channel_layout_from_mask(&avctx->ch_layout, s->channel_layout);
99 avctx->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
100 avctx->ch_layout.nb_channels = s->channels;
104 avctx->channels = avctx->ch_layout.nb_channels;
105 avctx->channel_layout = s->channel_layout;
110 avctx->audio_service_type = s->service_type;
115 if (!CONFIG_EAC3_DECODER || avctx->codec_id != AV_CODEC_ID_EAC3) {
116 avctx->bit_rate +=
117 (s->bit_rate - avctx->bit_rate) / s->frame_number;