Revision 8745e9c4 libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
1988 1988
    ch_layout = *channel_layout;
1989 1989
    if (!ch_layout)
1990 1990
        ch_layout = avcodec_guess_channel_layout(channels, CODEC_ID_AC3, NULL);
1991
    if (av_get_channel_layout_nb_channels(ch_layout) != channels)
1992
        return AVERROR(EINVAL);
1993 1991

  
1994 1992
    s->lfe_on       = !!(ch_layout & AV_CH_LOW_FREQUENCY);
1995 1993
    s->channels     = channels;

Also available in: Unified diff