[vlc-commits] x264: Define timebase

Ilkka Ollakka git at videolan.org
Sat Mar 24 15:14:40 CET 2012


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Feb 21 09:39:44 2012 +0200| [3cad191c6bad048ff0defad8f6b17c03f08ff6cb] | committer: Ilkka Ollakka

x264: Define timebase

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3cad191c6bad048ff0defad8f6b17c03f08ff6cb
---

 modules/codec/x264.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index fc9bc8f..05c76b1 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -1232,7 +1232,9 @@ static int  Open ( vlc_object_t *p_this )
     {
         p_sys->param.i_fps_num = p_enc->fmt_in.video.i_frame_rate;
         p_sys->param.i_fps_den = p_enc->fmt_in.video.i_frame_rate_base;
-        p_sys->param.b_vfr_input = 0;
+        p_sys->param.i_timebase_num = 1;
+        p_sys->param.i_timebase_den = INT64_C(1000000);
+        p_sys->param.b_vfr_input = 1;
     }
 
     /* Check slice-options */



More information about the vlc-commits mailing list