diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2022-01-09 12:23:48 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2022-01-09 12:23:48 +0100 |
commit | 220f65f4a6f8bd5a940cff5b9ce166aeee6722d8 (patch) | |
tree | 1885d126e3db3575e3f0591146d19674adfe8398 | |
parent | 0ddbf4fce49821c4eb801cf05e93f05ab1c684a1 (diff) | |
download | nihav-player-220f65f4a6f8bd5a940cff5b9ce166aeee6722d8.tar.gz |
sndplay: read ID3 padding
-rw-r--r-- | sndplay/src/demux.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sndplay/src/demux.rs b/sndplay/src/demux.rs index 9878500..d40c29c 100644 --- a/sndplay/src/demux.rs +++ b/sndplay/src/demux.rs @@ -299,6 +299,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; |