aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-commonfmt
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-11-24 18:08:15 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-11-24 18:08:15 +0100
commit9c339c62f30f608c7727aba76dedda9f82e68093 (patch)
tree52469546d6f227904b3147a7683e1e6d9d66eda5 /nihav-commonfmt
parentff7cb24a554c244c7494a981f4ad2c712804a271 (diff)
downloadnihav-9c339c62f30f608c7727aba76dedda9f82e68093.tar.gz
avi: rename str to stream for clarity
Diffstat (limited to 'nihav-commonfmt')
-rw-r--r--nihav-commonfmt/src/demuxers/avi.rs6
1 files 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);