From: Kostya Shishkov Date: Mon, 4 May 2026 18:16:01 +0000 (+0200) Subject: nihav_codec_support/dec_video: use stream number instead of ID X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=4f858fedea238936aa14467728d69d2f2e41dd60;p=nihav.git nihav_codec_support/dec_video: use stream number instead of ID The former is sequential, the latter can be arbitrarily large. --- diff --git a/nihav-codec-support/src/test/dec_video.rs b/nihav-codec-support/src/test/dec_video.rs index 8eb3ac2..0bc8d15 100644 --- a/nihav-codec-support/src/test/dec_video.rs +++ b/nihav-codec-support/src/test/dec_video.rs @@ -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;