Lines Matching defs:channels
536 if (avctx->channel_layout && avctx->channels) {
537 int channels = av_get_channel_layout_nb_channels(avctx->channel_layout);
538 if (channels != avctx->channels) {
542 "Channel layout '%s' with %d channels does not match number of specified channels %d\n",
543 buf, channels, avctx->channels);
547 avctx->channels = av_get_channel_layout_nb_channels(avctx->channel_layout);
549 if (avctx->channels < 0) {
550 av_log(avctx, AV_LOG_ERROR, "Specified number of channels %d is not supported\n",
551 avctx->channels);