Commit 2512d577 authored by michael's avatar michael

fabs is better then abs for floats ...


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5422 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f8eb8aec
......@@ -911,7 +911,7 @@ static int init_pass2(MpegEncContext *s)
av_free(qscale);
av_free(blured_qscale);
if(abs(expected_bits/all_available_bits - 1.0) > 0.01 ){
if(fabs(expected_bits/all_available_bits - 1.0) > 0.01 ){
av_log(s->avctx, AV_LOG_ERROR, "Error: 2pass curve failed to converge\n");
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment