[vlc-commits] x264: set timebase even if we don't get framerate

Ilkka Ollakka git at videolan.org
Sun Apr 17 10:57:04 CEST 2016


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Apr 16 10:45:58 2016 +0300| [314242606d0646bcc438476b85339c361540fa20] | committer: Ilkka Ollakka

x264: set timebase even if we don't get framerate

Pointed by Steinar Gunderson

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

 modules/codec/x264.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index 321cfdc..737deb9 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -1333,12 +1333,13 @@ static int  Open ( vlc_object_t *p_this )
         p_sys->param.vui.i_sar_height = i_dst_den;
     }
 
+    p_sys->param.i_timebase_num = 1;
+    p_sys->param.i_timebase_den = CLOCK_FREQ;
+
     if( p_enc->fmt_in.video.i_frame_rate_base > 0 )
     {
         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.i_timebase_num = 1;
-        p_sys->param.i_timebase_den = CLOCK_FREQ;
         p_sys->param.b_vfr_input = 0;
     }
 



More information about the vlc-commits mailing list