[Ffmpeg-cvslog] r5422 - trunk/libavcodec/ratecontrol.c

michael subversion
Mon May 29 18:50:37 CEST 2006


Author: michael
Date: Mon May 29 18:50:37 2006
New Revision: 5422

Modified:
   trunk/libavcodec/ratecontrol.c

Log:
fabs is better then abs for floats ...


Modified: trunk/libavcodec/ratecontrol.c
==============================================================================
--- trunk/libavcodec/ratecontrol.c	(original)
+++ trunk/libavcodec/ratecontrol.c	Mon May 29 18:50:37 2006
@@ -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;
     }




More information about the ffmpeg-cvslog mailing list