From 6446632def5da3271e6e8f6319d385c79bdf9825 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 5 Mar 2026 17:58:28 +0100 Subject: [PATCH] h264: fix the typo that made multi-threaded decoding test fail too often --- nihav-itu/src/codecs/h264/decoder_mt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-itu/src/codecs/h264/decoder_mt.rs b/nihav-itu/src/codecs/h264/decoder_mt.rs index 032b281..e6f1920 100644 --- a/nihav-itu/src/codecs/h264/decoder_mt.rs +++ b/nihav-itu/src/codecs/h264/decoder_mt.rs @@ -350,7 +350,7 @@ impl FrameDecoder { let cur_id = self.cur_pic.full_id as u16; // wait for the reference macroblock MV to be available if matches!(mb_info.mb_type, MBType::Direct | MBType::BSkip | MBType::B8x8) { - if let Some(ref_id) = refs.get_ref_id(0, mb_info.ref_l1[0].index()) { + if let Some(ref_id) = refs.get_ref_id(1, mb_info.ref_l1[0].index()) { wait_for_mb(&self.dispatch, &self.sstate, self.sstate.mb_x * 16, self.sstate.mb_y * 16, ZERO_MV, ref_id)?; } } -- 2.39.5