aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-01-09 12:22:05 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-01-09 12:22:05 +0100
commitdd612d5590928bcebeba04fb46b26e893e28f24b (patch)
treee23400be5754c37b5ddfb14aa06eab093823ff34
parent1517a97ddc5d38c18d1a1ca0267156909fd740ab (diff)
downloadnihav-tool-dd612d5590928bcebeba04fb46b26e893e28f24b.tar.gz
read ID3 padding
-rw-r--r--src/demux.rs4
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;