Revision 5128842e libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
1125 1125

  
1126 1126
    FFSWAP(uint8_t *, s->bap_buffer, s->bap1_buffer);
1127 1127
    for (snr_incr = 64; snr_incr > 0; snr_incr >>= 2) {
1128
        while (snr_offset + 64 <= 1023 &&
1128
        while (snr_offset + snr_incr <= 1023 &&
1129 1129
               bit_alloc(s, snr_offset + snr_incr) <= bits_left) {
1130 1130
            snr_offset += snr_incr;
1131 1131
            FFSWAP(uint8_t *, s->bap_buffer, s->bap1_buffer);

Also available in: Unified diff