From dd612d5590928bcebeba04fb46b26e893e28f24b Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 9 Jan 2022 12:22:05 +0100 Subject: [PATCH] read ID3 padding --- src/demux.rs | 4 ++++ 1 file changed, 4 insertions(+) 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) { } 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; -- 2.39.5