[FFmpeg-cvslog] r12288 - trunk/ffmpeg.c
Rich Felker
dalias
Sun Mar 2 01:41:19 CET 2008
On Sun, Mar 02, 2008 at 12:36:27AM +0100, michael wrote:
> Author: michael
> Date: Sun Mar 2 00:36:27 2008
> New Revision: 12288
>
> Log:
> Remove INFINITY.
>
>
> Modified:
> trunk/ffmpeg.c
>
> Modified: trunk/ffmpeg.c
> ==============================================================================
> --- trunk/ffmpeg.c (original)
> +++ trunk/ffmpeg.c Sun Mar 2 00:36:27 2008
> @@ -59,10 +59,6 @@
> #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
> }
>
> static double psnr(double d){
> - if(d==0) return INFINITY;
> return -10.0*log(d)/log(10.0);
Nice clean solution. :)
Rich
More information about the ffmpeg-cvslog
mailing list