Revision 688b09fa libavcodec/utils.c

View differences:

libavcodec/utils.c
584 584
                ret = AVERROR(EINVAL);
585 585
                goto free_and_end;
586 586
            }
587
        } else if (avctx->channel_layout) {
588
            avctx->channels = av_get_channel_layout_nb_channels(avctx->channel_layout);
587 589
        }
588 590
    }
589 591

  

Also available in: Unified diff