From: Kostya Shishkov Date: Thu, 24 Nov 2022 17:08:15 +0000 (+0100) Subject: avi: rename str to stream for clarity X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=9c339c62f30f608c7727aba76dedda9f82e68093;p=nihav.git avi: rename str to stream for clarity --- 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);