diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-05-29 16:50:37 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-05-29 16:50:37 +0000 |
commit | 2fefd23b9618f219a77e94160deb38062f0b9b3d (patch) | |
tree | b40e288f7ff0813c7e300e37ba46c31549022818 /libavcodec | |
parent | b3aaa7bea65df0208e01a3810f58b0f3d0695029 (diff) | |
download | ffmpeg-2fefd23b9618f219a77e94160deb38062f0b9b3d.tar.gz |
fabs is better then abs for floats ...
Originally committed as revision 5422 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ratecontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c index 3ca6f9d157..f4f433adde 100644 --- a/libavcodec/ratecontrol.c +++ b/libavcodec/ratecontrol.c @@ -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; } |