X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg.c;h=cd04727f947386fa91d15071a514b6d8f16dc65c;hb=9701840bb539546bc0cfb1307b04655140851b04;hp=3fe9992c6d8890c6c4be49a44edb1bc29e9830d7;hpb=53d1bdbaed7fde46294a376f9e54a2add63c95f8;p=ffmpeg diff --git a/ffmpeg.c b/ffmpeg.c index 3fe9992c6d8..cd04727f947 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -59,10 +59,6 @@ #undef NDEBUG #include -#if !defined(INFINITY) && defined(HUGE_VAL) -#define INFINITY HUGE_VAL -#endif - #undef exit static const char program_name[] = "FFmpeg"; @@ -210,7 +206,7 @@ static uint64_t limit_filesize = 0; // static int pgmyuv_compatibility_hack=0; static float dts_delta_threshold = 10; -static int sws_flags = SWS_BICUBIC; +static unsigned int sws_flags = SWS_BICUBIC; static const char **opt_names; static int opt_name_count; @@ -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); } @@ -1597,6 +1592,8 @@ static int av_encode(AVFormatContext **output_files, av_strlcpy(ost->st->language, ist->st->language, sizeof(ost->st->language)); + ost->st->disposition = ist->st->disposition; + if (ost->st->stream_copy) { /* if stream_copy is selected, no need to decode or encode */ codec->codec_id = icodec->codec_id;