]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Remove INFINITY.
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 1 Mar 2008 23:36:27 +0000 (23:36 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 1 Mar 2008 23:36:27 +0000 (23:36 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12288 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

ffmpeg.c

index 3fe9992c6d8890c6c4be49a44edb1bc29e9830d7..98f0f82e0c180b26ea10d450ba22fdbfd71b9aef 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
 #undef NDEBUG
 #include <assert.h>
 
-#if !defined(INFINITY) && defined(HUGE_VAL)
-#define INFINITY HUGE_VAL
-#endif
-
 #undef exit
 
 static const char program_name[] = "FFmpeg";
@@ -876,7 +872,6 @@ static void do_video_out(AVFormatContext *s,
 }
 
 static double psnr(double d){
-    if(d==0) return INFINITY;
     return -10.0*log(d)/log(10.0);
 }