summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-17 00:17:31 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-19 03:51:43 +0100
commit90c98994f68b8090cc2573e94df2d748b6b337a8 (patch)
treed1fb12bb5b9d9c29a44fae6461fd6efc0ad1c910 /ffmpeg.c
parenta582705d15409cdffe87d7bbbd1d58aa03bc6f73 (diff)
ffmpeg: Reduce noisiness of frame clipping in rate convertion
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 633daddeea..698fea4997 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -944,7 +944,10 @@ static void do_video_out(AVFormatContext *s,
format_video_sync != VSYNC_PASSTHROUGH &&
format_video_sync != VSYNC_DROP) {
double cor = FFMIN(-delta0, duration);
- av_log(NULL, AV_LOG_WARNING, "Past duration %f too large\n", -delta0);
+ if (delta0 < -0.6) {
+ av_log(NULL, AV_LOG_WARNING, "Past duration %f too large\n", -delta0);
+ } else
+ av_log(NULL, AV_LOG_DEBUG, "Cliping frame in rate conversion by %f\n", -delta0);
sync_ipts += cor;
duration -= cor;
delta0 += cor;