Lines Matching defs:channels
302 int version, channels, map_type, streams, stereo_streams, i, j;
306 if (avctx->channels > 2) {
311 default_extradata[9] = (avctx->channels == 1) ? 1 : 2;
333 channels = extradata[9];
334 if (!channels) {
345 if (channels > 2) {
347 "Channel mapping 0 is only specified for up to 2 channels\n");
350 layout = (channels == 1) ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
352 stereo_streams = channels - 1;
355 if (extradata_size < 21 + channels) {
371 if (channels > 8) {
373 "Channel mapping 1 is only specified for up to 8 channels\n");
376 layout = ff_vorbis_channel_layouts[channels - 1];
387 s->channel_maps = av_mallocz_array(channels, sizeof(*s->channel_maps));
391 for (i = 0; i < channels; i++) {
393 uint8_t idx = channel_map[channel_reorder(channels, i)];
407 if (channel_map[channel_reorder(channels, j)] == idx) {
422 avctx->channels = channels;