]> git.nihav.org Git - nihav-tool.git/commitdiff
read ID3 padding
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 9 Jan 2022 11:22:05 +0000 (12:22 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 9 Jan 2022 11:22:05 +0000 (12:22 +0100)
src/demux.rs

index e274e7159fc63dd341fae6dab282a31136ab6169..bf8a07215b5a0e24b3d3f16d21f1c8af8ecfb1b8 100644 (file)
@@ -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;