Revision 6d96d626 libavcodec/ac3dec.c

View differences:

libavcodec/ac3dec.c
100 100
    int chincpl[AC3_MAX_CHANNELS];
101 101
    int phsflginu;
102 102
    int cplcoe;
103
    uint32_t cplbndstrc;
103
    int cplbndstrc[18];
104 104
    int rematstr;
105 105
    int nrematbnd;
106 106
    int rematflg[AC3_MAX_CHANNELS];
......
413 413
                }
414 414
                i++;
415 415
            }
416
        } while((ctx->cplbndstrc >> subbnd) & 1);
416
        } while(ctx->cplbndstrc[subbnd]);
417 417
    }
418 418
}
419 419

  
......
730 730

  
731 731
    if (get_bits1(gb)) { /* coupling strategy */
732 732
        ctx->cplinu = get_bits1(gb);
733
        ctx->cplbndstrc = 0;
734 733
        if (ctx->cplinu) { /* coupling in use */
735 734
            int cplbegf, cplendf;
736 735

  
......
753 752
            ctx->cplendmant = cplendf * 12 + 73;
754 753
            for (i = 0; i < ctx->ncplsubnd - 1; i++) /* coupling band structure */
755 754
                if (get_bits1(gb)) {
756
                    ctx->cplbndstrc |= 1 << i;
755
                    ctx->cplbndstrc[i] = 1;
757 756
                    ctx->ncplbnd--;
758 757
                }
759 758
        } else {

Also available in: Unified diff