diff mbox

[FFmpeg-devel] fftools/ffmpeg: add option to hide vsync warnings

Message ID 57f5e5ed-1625-2f1b-34d5-a61878788416@gmail.com
State Accepted
Commit 07987404a8b7346e1904501b88320c9bab353298
Headers show

Commit Message

Gyan June 28, 2018, 8:43 a.m. UTC
Alt patch attached. Plan to push tonight.
From 07987404a8b7346e1904501b88320c9bab353298 Mon Sep 17 00:00:00 2001
From: Gyan Doshi <ffmpeg@gyani.pro>
Date: Thu, 28 Jun 2018 14:05:31 +0530
Subject: [PATCH] ffmpeg: make loglevel verbose for frame duration warning

---
 fftools/ffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Gyan June 28, 2018, 3:10 p.m. UTC | #1
On 28-06-2018 02:13 PM, Gyan Doshi wrote:
> Alt patch attached. Plan to push tonight.

Pushed in 07987404a8b7346e1904501b88320c9bab353298.
diff mbox

Patch

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 8d311a9ac8..5d9dbffc3b 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -1121,7 +1121,7 @@  static void do_video_out(OutputFile *of,
             format_video_sync != VSYNC_PASSTHROUGH &&
             format_video_sync != VSYNC_DROP) {
             if (delta0 < -0.6) {
-                av_log(NULL, AV_LOG_WARNING, "Past duration %f too large\n", -delta0);
+                av_log(NULL, AV_LOG_VERBOSE, "Past duration %f too large\n", -delta0);
             } else
                 av_log(NULL, AV_LOG_DEBUG, "Clipping frame in rate conversion by %f\n", -delta0);
             sync_ipts = ost->sync_opts;