Revision 4142487d libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
1052 1052
    int snr_offset, snr_incr;
1053 1053

  
1054 1054
    bits_left = 8 * s->frame_size - (s->frame_bits + s->exponent_bits);
1055
    av_assert2(bits_left >= 0);
1055
    if (bits_left < 0)
1056
        return AVERROR(EINVAL);
1056 1057

  
1057 1058
    snr_offset = s->coarse_snr_offset << 4;
1058 1059

  

Also available in: Unified diff