ffmpeg: Fix copying timebase to muxer context
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 15 Jul 2014 13:45:06 +0000 (15:45 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 15 Jul 2014 13:51:31 +0000 (15:51 +0200)
Fixes Ticket3741

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

index 0bdbe14..1c1a559 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2880,7 +2880,7 @@ static int transcode_init(void)
         ost->st->codec->codec= ost->enc_ctx->codec;
 
         // copy timebase while removing common factors
-        ost->st->time_base = av_add_q(ost->enc_ctx->time_base, (AVRational){0});
+        ost->st->time_base = av_add_q(ost->enc_ctx->time_base, (AVRational){0, 1});
     }
 
     /* init input streams */