Revision f6586314

View differences:

libavcodec/aac.c
1692 1692
        ac->m4ac.sample_rate     = hdr_info.sample_rate;
1693 1693
        ac->m4ac.sampling_index  = hdr_info.sampling_index;
1694 1694
        ac->m4ac.object_type     = hdr_info.object_type;
1695
        if (!ac->avccontext->sample_rate)
1696
            ac->avccontext->sample_rate = hdr_info.sample_rate;
1695 1697
        if (hdr_info.num_aac_frames == 1) {
1696 1698
            if (!hdr_info.crc_absent)
1697 1699
                skip_bits(gb, 16);

Also available in: Unified diff