Revision 8e2eb3b6 libavcodec/ac3dec.c

View differences:

libavcodec/ac3dec.c
700 700
    int i, bnd, seg, ch;
701 701
    GetBitContext *gb = &ctx->gb;
702 702
    int bit_alloc_flags = 0;
703
    int mstrcplco, cplcoexp, cplcomant;
704
    int chbwcod, skipl;
705 703

  
706 704
    for (i = 0; i < nfchans; i++) /*block switch flag */
707 705
        ctx->blksw[i] = get_bits1(gb);
......
767 765
        for (i = 0; i < nfchans; i++) {
768 766
            if (ctx->chincpl[i]) {
769 767
                if (get_bits1(gb)) { /* coupling co-ordinates */
768
                    int mstrcplco, cplcoexp, cplcomant;
770 769
                    cplcoe = 1;
771 770
                    mstrcplco = 3 * get_bits(gb, 2);
772 771
                    for (bnd = 0; bnd < ctx->ncplbnd; bnd++) {
......
815 814
            if (ctx->chincpl[i])
816 815
                ctx->endmant[i] = ctx->cplstrtmant;
817 816
            else {
818
                chbwcod = get_bits(gb, 6);
817
                int chbwcod = get_bits(gb, 6);
819 818
                if (chbwcod > 60) {
820 819
                    av_log(NULL, AV_LOG_ERROR, "chbwcod = %d > 60", chbwcod);
821 820
                    return -1;
......
964 963
    }
965 964

  
966 965
    if (get_bits1(gb)) { /* unused dummy data */
967
        skipl = get_bits(gb, 9);
966
        int skipl = get_bits(gb, 9);
968 967
        while(skipl--)
969 968
            skip_bits(gb, 8);
970 969
    }

Also available in: Unified diff