Revision bfeca7be libavcodec/ac3_parser.c

View differences:

libavcodec/ac3_parser.c
121 121
                        (hdr->num_blocks * 256.0));
122 122
        hdr->channels = ff_ac3_channels_tab[hdr->channel_mode] + hdr->lfe_on;
123 123
    }
124
    hdr->channel_layout = ff_ac3_channel_layout_tab[hdr->channel_mode];
125
    if (hdr->lfe_on)
126
        hdr->channel_layout |= CH_LOW_FREQUENCY;
124 127

  
125 128
    return 0;
126 129
}
......
174 177
    hdr_info->sample_rate = hdr.sample_rate;
175 178
    hdr_info->bit_rate = hdr.bit_rate;
176 179
    hdr_info->channels = hdr.channels;
180
    hdr_info->channel_layout = hdr.channel_layout;
177 181
    hdr_info->samples = hdr.num_blocks * 256;
178 182
    if(hdr.bitstream_id>10)
179 183
        hdr_info->codec_id = CODEC_ID_EAC3;

Also available in: Unified diff