ID3v2: Handle tag-wide unsynchronisation flag

This commit is contained in:
Serial 2022-09-02 23:36:44 -04:00
parent b407ab140c
commit 859d084dbf
No known key found for this signature in database
GPG key ID: DA95198DC17C4568
2 changed files with 8 additions and 0 deletions

View file

@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- **ID3v2**: Handle tag-wide unsynchronisation flag ([amberol#235](https://gitlab.gnome.org/World/amberol/-/issues/235))
## [0.8.0] - 2022-08-10
### Added

View file

@ -13,6 +13,11 @@ where
let mut tag_bytes = try_vec![0; (header.size - header.extended_size) as usize];
bytes.read_exact(&mut tag_bytes)?;
// Unsynchronize the entire tag
if header.flags.unsynchronisation {
tag_bytes = super::util::unsynch_content(&tag_bytes)?;
}
let mut tag = ID3v2Tag::default();
tag.original_version = header.version;
tag.set_flags(header.flags);