From 35f0e23a465253bd1dc6cbfc1343c9c623b154f7 Mon Sep 17 00:00:00 2001 From: David Hoyt Date: Tue, 20 Jul 2010 16:40:22 +0200 Subject: [PATCH] x264enc: set appropriate time base Fixes #624786. --- ext/x264/gstx264enc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 83c4cb701e..ad342216fe 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -559,6 +559,10 @@ gst_x264_enc_init (GstX264Enc * encoder, GstX264EncClass * klass) encoder->x264param.p_log_private = encoder; encoder->x264param.i_log_level = X264_LOG_DEBUG; + /* setup appropriate timebase for gstreamer */ + encoder->x264param.i_timebase_num = 1; + encoder->x264param.i_timebase_den = 1000000000; + gst_x264_enc_reset (encoder); }