[FFmpeg-cvslog] ffmpeg: Fix copying timebase to muxer context

Michael Niedermayer git at videolan.org
Tue Jul 15 15:52:13 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul 15 15:45:06 2014 +0200| [01c17b5224ce0c9899a58f639ef6611fe626ef5f] | committer: Michael Niedermayer

ffmpeg: Fix copying timebase to muxer context

Fixes Ticket3741

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01c17b5224ce0c9899a58f639ef6611fe626ef5f
---

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

diff --git a/ffmpeg.c b/ffmpeg.c
index 0bdbe14..1c1a559 100644
--- 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 */



More information about the ffmpeg-cvslog mailing list