mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-11-10 06:34:18 +00:00
ID3v2: Handle tag-wide unsynchronisation flag
This commit is contained in:
parent
b407ab140c
commit
859d084dbf
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue