From 9c339c62f30f608c7727aba76dedda9f82e68093 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 24 Nov 2022 18:08:15 +0100 Subject: [PATCH] avi: rename str to stream for clarity --- nihav-commonfmt/src/demuxers/avi.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs index 007e7c3..0ab7711 100644 --- a/nihav-commonfmt/src/demuxers/avi.rs +++ b/nihav-commonfmt/src/demuxers/avi.rs @@ -796,9 +796,9 @@ fn parse_idx1(src: &mut ByteReader, strmgr: &mut StreamManager, seek_idx: &mut S let stream_no = ((tag[0] - b'0') * 10 + (tag[1] - b'0')) as usize; if (flags & 0x10) != 0 { - if let Some(str) = strmgr.get_stream(stream_no) { - if str.get_media_type() == StreamType::Video { - let (tb_num, tb_den) = str.get_timebase(); + if let Some(stream) = strmgr.get_stream(stream_no) { + if stream.get_media_type() == StreamType::Video { + let (tb_num, tb_den) = stream.get_timebase(); let pts = counter[stream_no]; let time = NATimeInfo::ts_to_time(pts, 1000, tb_num, tb_den); validate!(offset >= movi_pos); -- 2.39.5