mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-20 14:16:17 +08:00
Remove INFINITY.
Originally committed as revision 12288 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
5
ffmpeg.c
5
ffmpeg.c
@ -59,10 +59,6 @@
|
|||||||
#undef NDEBUG
|
#undef NDEBUG
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#if !defined(INFINITY) && defined(HUGE_VAL)
|
|
||||||
#define INFINITY HUGE_VAL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#undef exit
|
#undef exit
|
||||||
|
|
||||||
static const char program_name[] = "FFmpeg";
|
static const char program_name[] = "FFmpeg";
|
||||||
@ -876,7 +872,6 @@ static void do_video_out(AVFormatContext *s,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static double psnr(double d){
|
static double psnr(double d){
|
||||||
if(d==0) return INFINITY;
|
|
||||||
return -10.0*log(d)/log(10.0);
|
return -10.0*log(d)/log(10.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user