changeset 3319:19e9a62ddf1b libavcodec

fabs is better then abs for floats ...
author michael
date Mon, 29 May 2006 16:50:37 +0000
parents 8dc886b9568a
children 888e539459f4
files ratecontrol.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ratecontrol.c	Mon May 29 16:39:40 2006 +0000
+++ b/ratecontrol.c	Mon May 29 16:50:37 2006 +0000
@@ -911,7 +911,7 @@
     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;
     }