Revision 9c84a72a libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
1116 1116

  
1117 1117
    snr_offset = s->coarse_snr_offset << 4;
1118 1118

  
1119
    /* if previous frame SNR offset was 1023, check if current frame can also
1120
       use SNR offset of 1023. if so, skip the search. */
1121
    if ((snr_offset | s->fine_snr_offset[0]) == 1023) {
1122
        if (bit_alloc(s, 1023) <= bits_left)
1123
            return 0;
1124
    }
1125

  
1119 1126
    while (snr_offset >= 0 &&
1120 1127
           bit_alloc(s, snr_offset) > bits_left) {
1121 1128
        snr_offset -= 64;

Also available in: Unified diff