write correct VUI timing info
authorMåns Rullgård <mru@mru.ath.cx>
Thu, 19 Jan 2006 00:05:05 +0000 (00:05 +0000)
committerMåns Rullgård <mru@mru.ath.cx>
Thu, 19 Jan 2006 00:05:05 +0000 (00:05 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@407 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/set.c
x264.h

index dbf5443..26549c2 100644 (file)
@@ -179,10 +179,8 @@ void x264_sps_init( x264_sps_t *sps, int i_id, x264_param_t *param )
     if( param->i_fps_num > 0 && param->i_fps_den > 0)
     {
         sps->vui.b_timing_info_present = 1;
-        /* The standard is confusing me, but this seems to work best
-           with other encoders */
         sps->vui.i_num_units_in_tick = param->i_fps_den;
-        sps->vui.i_time_scale = param->i_fps_num;
+        sps->vui.i_time_scale = param->i_fps_num * 2;
         sps->vui.b_fixed_frame_rate = 1;
     }
 
diff --git a/x264.h b/x264.h
index 86abc97..42c9e67 100644 (file)
--- a/x264.h
+++ b/x264.h
@@ -35,7 +35,7 @@
 
 #include <stdarg.h>
 
-#define X264_BUILD 43
+#define X264_BUILD 44
 
 /* x264_t:
  *      opaque handler for decoder and encoder */