From: Kostya Shishkov Date: Sun, 9 Jan 2022 11:22:05 +0000 (+0100) Subject: read ID3 padding X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=dd612d5590928bcebeba04fb46b26e893e28f24b;p=nihav-tool.git read ID3 padding --- 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;