From 061085708af550425a086eb3d910fdea15a4c0fb Mon Sep 17 00:00:00 2001 From: "Pohsiang (John) Hsu" Date: Wed, 21 May 2025 13:59:55 -0700 Subject: [PATCH] mediafoundation: on use LTR, synchronize the active ltr bitmap to the one passed in Reviewed-by: Yubo Xie Reviewed-by: Sil Vilerino Part-of: --- .../frontends/mediafoundation/reference_frames_tracker_hevc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/frontends/mediafoundation/reference_frames_tracker_hevc.cpp b/src/gallium/frontends/mediafoundation/reference_frames_tracker_hevc.cpp index a8b1bb32307..019859c0e0b 100644 --- a/src/gallium/frontends/mediafoundation/reference_frames_tracker_hevc.cpp +++ b/src/gallium/frontends/mediafoundation/reference_frames_tracker_hevc.cpp @@ -153,6 +153,8 @@ reference_frames_tracker_hevc::begin_frame( reference_frames_tracker_dpb_async_t ++itr; } } + + m_ActiveLTRBitmap = useLTRBitmap & 0xFFFF; // synchronize active LTR bitmap with useLTRBitmap } ltrUsedBitMask = PrepareFrameRefLists();