From dcd17848920e5a1d441183ceb7c8b740cf08f696 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 11 Sep 2011 11:01:36 +0200 Subject: [PATCH] h264 header ticks per unit refer to fields --- src/common/mpeg4_p10.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/mpeg4_p10.cpp b/src/common/mpeg4_p10.cpp index eaa98352c..00f3c7f9b 100644 --- a/src/common/mpeg4_p10.cpp +++ b/src/common/mpeg4_p10.cpp @@ -419,7 +419,7 @@ mpeg4::p10::parse_sps(memory_cptr &buffer, } sps.timing_info_present = w.copy_bits(1, r); if (sps.timing_info_present) { - sps.num_units_in_tick = w.copy_bits(32, r); + sps.num_units_in_tick = w.copy_bits(32, r) * 2; sps.time_scale = w.copy_bits(32, r); sps.fixed_frame_rate = w.copy_bits(1, r); }