Revision 2fefd23b

View differences:

libavcodec/ratecontrol.c
911 911
    av_free(qscale);
912 912
    av_free(blured_qscale);
913 913

  
914
    if(abs(expected_bits/all_available_bits - 1.0) > 0.01 ){
914
    if(fabs(expected_bits/all_available_bits - 1.0) > 0.01 ){
915 915
        av_log(s->avctx, AV_LOG_ERROR, "Error: 2pass curve failed to converge\n");
916 916
        return -1;
917 917
    }

Also available in: Unified diff