From 9098f0ecd7bfa8e971ab92bd0c244cb003ef43b2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 9 Jul 2014 21:48:16 +0200 Subject: [PATCH] ffmpeg: remove common factors from copied timebase Signed-off-by: Michael Niedermayer --- ffmpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 28ed351474..15f2c24228 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2879,7 +2879,8 @@ static int transcode_init(void) } ost->st->codec->codec= ost->enc_ctx->codec; - ost->st->time_base = ost->enc_ctx->time_base; + // copy timebase while removing common factors + ost->st->time_base = av_add_q(ost->enc_ctx->time_base, (AVRational){0}); } /* init input streams */