]> git.nihav.org Git - nihav.git/commitdiff
h264: fix the typo that made multi-threaded decoding test fail too often
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 5 Mar 2026 16:58:28 +0000 (17:58 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 5 Mar 2026 16:58:28 +0000 (17:58 +0100)
nihav-itu/src/codecs/h264/decoder_mt.rs

index 032b2810c81c78f10605de645d3a614ade3e95f2..e6f1920bfad26910e6ba0be590ad4d65f725a54b 100644 (file)
@@ -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)?;
                 }
             }