From 273dc626b8b4f7cfe166be728038d9d3e9fd1fb7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Thu, 19 Jan 2006 00:05:05 +0000 Subject: [PATCH] write correct VUI timing info git-svn-id: svn://svn.videolan.org/x264/trunk@407 df754926-b1dd-0310-bc7b-ec298dee348c --- encoder/set.c | 4 +--- x264.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/encoder/set.c b/encoder/set.c index dbf54438..26549c21 100644 --- a/encoder/set.c +++ b/encoder/set.c @@ -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 86abc972..42c9e679 100644 --- a/x264.h +++ b/x264.h @@ -35,7 +35,7 @@ #include -#define X264_BUILD 43 +#define X264_BUILD 44 /* x264_t: * opaque handler for decoder and encoder */ -- 2.47.3