]> git.nihav.org Git - nihav.git/commitdiff
nihav_codec_support/dec_video: use stream number instead of ID master
authorKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 4 May 2026 18:16:01 +0000 (20:16 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 4 May 2026 18:16:01 +0000 (20:16 +0200)
The former is sequential, the latter can be arbitrarily large.

nihav-codec-support/src/test/dec_video.rs

index 8eb3ac21fb628a5390ff48cc7e13402a13033319..0bc8d151cb3225eac0d58cbf3c4e0b2ac6469c05 100644 (file)
@@ -300,7 +300,7 @@ println!("stream {} codec {} / {}", i, info.get_name(), dec_name);
             panic!("error");
         }
         let pkt = pktres.unwrap();
-        let streamno = pkt.get_stream().get_id() as usize;
+        let streamno = pkt.get_stream().get_num();
         if let Some((ref mut dsupp, ref mut dec)) = decs[streamno] {
             if limit.is_some() && pkt.get_pts().is_some() && pkt.get_pts().unwrap() > limit.unwrap() {
                 break;