Commit 90c98994 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: Reduce noisiness of frame clipping in rate convertion

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a582705d
...@@ -944,7 +944,10 @@ static void do_video_out(AVFormatContext *s, ...@@ -944,7 +944,10 @@ static void do_video_out(AVFormatContext *s,
format_video_sync != VSYNC_PASSTHROUGH && format_video_sync != VSYNC_PASSTHROUGH &&
format_video_sync != VSYNC_DROP) { format_video_sync != VSYNC_DROP) {
double cor = FFMIN(-delta0, duration); double cor = FFMIN(-delta0, duration);
if (delta0 < -0.6) {
av_log(NULL, AV_LOG_WARNING, "Past duration %f too large\n", -delta0); 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; sync_ipts += cor;
duration -= cor; duration -= cor;
delta0 += cor; delta0 += cor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment