Browse code

ffmpeg: Reduce noisiness of frame clipping in rate convertion

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2015/01/17 08:17:31
Showing 1 changed files
... ...
@@ -944,7 +944,10 @@ static void do_video_out(AVFormatContext *s,
944 944
         format_video_sync != VSYNC_PASSTHROUGH &&
945 945
         format_video_sync != VSYNC_DROP) {
946 946
         double cor = FFMIN(-delta0, duration);
947
-        av_log(NULL, AV_LOG_WARNING, "Past duration %f too large\n", -delta0);
947
+        if (delta0 < -0.6) {
948
+            av_log(NULL, AV_LOG_WARNING, "Past duration %f too large\n", -delta0);
949
+        } else
950
+            av_log(NULL, AV_LOG_DEBUG, "Cliping frame in rate conversion by %f\n", -delta0);
948 951
         sync_ipts += cor;
949 952
         duration -= cor;
950 953
         delta0 += cor;