Revision aa148649

View differences:

libavcodec/ac3dec.c
951 951
        s->bit_alloc_params.slow_gain  = ff_ac3_slow_gain_tab[get_bits(gbc, 2)];
952 952
        s->bit_alloc_params.db_per_bit = ff_ac3_db_per_bit_tab[get_bits(gbc, 2)];
953 953
        s->bit_alloc_params.floor  = ff_ac3_floor_tab[get_bits(gbc, 3)];
954
        for(ch=!s->cpl_in_use; ch<=s->channels; ch++) {
954
        for(ch=!s->cpl_in_use; ch<=s->channels; ch++)
955 955
            bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 2);
956
        }
957 956
    } else if (!blk) {
958 957
        av_log(s->avctx, AV_LOG_ERROR, "new bit allocation info must be present in block 0\n");
959 958
        return -1;

Also available in: Unified diff