Commit 2fefd23b authored by Michael Niedermayer's avatar Michael Niedermayer

fabs is better then abs for floats ...

Originally committed as revision 5422 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b3aaa7be
...@@ -911,7 +911,7 @@ static int init_pass2(MpegEncContext *s) ...@@ -911,7 +911,7 @@ static int init_pass2(MpegEncContext *s)
av_free(qscale); av_free(qscale);
av_free(blured_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"); av_log(s->avctx, AV_LOG_ERROR, "Error: 2pass curve failed to converge\n");
return -1; 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