From 7ae3977fe7f6c2a5c071b57c040fbf13fcecec0a Mon Sep 17 00:00:00 2001 From: "Pohsiang (John) Hsu" Date: Wed, 18 Mar 2026 11:48:47 -0700 Subject: [PATCH] mediafoundation: fix hevc vui time_scale Reviewed-by: Yubo Xie Part-of: --- src/gallium/frontends/mediafoundation/encode_hevc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/mediafoundation/encode_hevc.cpp b/src/gallium/frontends/mediafoundation/encode_hevc.cpp index 4784a1e791a..283b255a665 100644 --- a/src/gallium/frontends/mediafoundation/encode_hevc.cpp +++ b/src/gallium/frontends/mediafoundation/encode_hevc.cpp @@ -153,7 +153,7 @@ CDX12EncHMFT::UpdateH265EncPictureDesc( pipe_h265_enc_picture_desc *pPicInfo, pPicInfo->seq.sar_height = m_VUIInfo.stSARInfo.usHeight; pPicInfo->seq.num_units_in_tick = m_FrameRate.Denominator; - pPicInfo->seq.time_scale = m_FrameRate.Numerator * 2; + pPicInfo->seq.time_scale = m_FrameRate.Numerator; // Table E.6 seq.vui_flags.frame_field_info_present_flag is 0, deltaToDivisor should be 1. pPicInfo->seq.video_format = m_VUIInfo.stVidSigType.eVideoFormat; pPicInfo->seq.colour_primaries = m_VUIInfo.stVidSigType.eColorPrimary;