From: David Hoyt Date: Tue, 20 Jul 2010 14:40:22 +0000 (+0200) Subject: x264enc: set appropriate time base X-Git-Tag: RELEASE-0.10.16~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35f0e23a465253bd1dc6cbfc1343c9c623b154f7;p=platform%2Fupstream%2Fgst-plugins-ugly.git x264enc: set appropriate time base Fixes #624786. --- diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 83c4cb70..ad342216 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); }