Revision 234b70d3

View differences:

libavcodec/ac3enc.c
1070 1070

  
1071 1071
    FFSWAP(uint8_t *, s->bap_buffer, s->bap1_buffer);
1072 1072
    for (snr_incr = 64; snr_incr > 0; snr_incr >>= 2) {
1073
    while (snr_offset + 64 <= 1023 &&
1074
           bit_alloc(s, snr_offset + snr_incr) <= bits_left) {
1075
        snr_offset += snr_incr;
1076
        FFSWAP(uint8_t *, s->bap_buffer, s->bap1_buffer);
1077
    }
1073
        while (snr_offset + 64 <= 1023 &&
1074
               bit_alloc(s, snr_offset + snr_incr) <= bits_left) {
1075
            snr_offset += snr_incr;
1076
            FFSWAP(uint8_t *, s->bap_buffer, s->bap1_buffer);
1077
        }
1078 1078
    }
1079 1079
    FFSWAP(uint8_t *, s->bap_buffer, s->bap1_buffer);
1080 1080
    reset_block_bap(s);

Also available in: Unified diff