fabs is better then abs for floats ...

Originally committed as revision 5422 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2006-05-29 16:50:37 +00:00
parent b3aaa7bea6
commit 2fefd23b96
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}