Lines Matching refs:avctx
27 AVCodecContext *avctx,
75 avctx->codec_id = s->codec_id;
81 if (avctx->codec_id != CODEC_ID_AAC) {
82 avctx->sample_rate = s->sample_rate;
85 if(avctx->request_channels > 0 &&
86 avctx->request_channels < s->channels &&
87 (avctx->request_channels <= 2 ||
88 (avctx->request_channels == 1 &&
89 (avctx->codec_id == CODEC_ID_AC3 ||
90 avctx->codec_id == CODEC_ID_EAC3)))) {
91 avctx->channels = avctx->request_channels;
93 avctx->channels = s->channels;
94 avctx->channel_layout = s->channel_layout;
96 avctx->frame_size = s->samples;
97 avctx->audio_service_type = s->service_type;
100 avctx->bit_rate = s->bit_rate;