Lines Matching defs:channels
75 if (avctx->channels < 1 || avctx->channels > 2) {
76 av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n");
79 if (avctx->block_align < 1 || avctx->block_align % avctx->channels) {
84 avctx->channel_layout = avctx->channels == 1 ? AV_CH_LAYOUT_MONO :
93 s->chunk_size = avctx->block_align + avctx->channels * (s->out_bps == 2);
95 av_log(avctx, AV_LOG_DEBUG, "%d channels, %d bits/sample, "
97 avctx->channels, avctx->bits_per_coded_sample, avctx->block_align,
104 int channels)
109 int st = channels - 1;
112 for (ch = 0; ch < channels; ch++) {
184 avctx->channels;
193 av_assert0(avctx->block_align * silent_chunks <= frame->nb_samples * avctx->channels);
207 av_assert0((buf_size & (avctx->channels > 1)) == 0);
211 avctx->channels);