diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2022-01-09 12:22:05 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2022-01-09 12:22:05 +0100 |
commit | dd612d5590928bcebeba04fb46b26e893e28f24b (patch) | |
tree | e23400be5754c37b5ddfb14aa06eab093823ff34 | |
parent | 1517a97ddc5d38c18d1a1ca0267156909fd740ab (diff) | |
download | nihav-tool-dd612d5590928bcebeba04fb46b26e893e28f24b.tar.gz |
read ID3 padding
-rw-r--r-- | src/demux.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/demux.rs b/src/demux.rs index e274e71..bf8a072 100644 --- a/src/demux.rs +++ b/src/demux.rs @@ -320,6 +320,10 @@ pub fn detect_tags(br: &mut ByteReader) -> (bool, u64, Option<u64>) { } start += size + 10; br.read_skip(size as usize).unwrap(); + while let Ok(0) = br.read_byte() { + start += 1; + } + br.seek(SeekFrom::Start(start)).unwrap(); is_raw = true; } else { break; |