metadata: mp3: Support unsync embedded jpeg album art

Support parsing alubm art from id3 metadata with "unsynchronisation scheme":
https://id3.org/id3v2.3.0#The_unsynchronisation_scheme

Change-Id: I1e2ca4ae0aa967f7e80142a04c9a7d99e38e68b2
This commit is contained in:
Roman Artiukhin 2024-11-06 22:28:24 +02:00 committed by Solomon Peachy
parent 6649731563
commit 7f4a8891a6
7 changed files with 72 additions and 23 deletions

View file

@ -1922,7 +1922,7 @@ static int audio_load_albumart(struct track_info *infop,
/* We can only decode jpeg for embedded AA */
if (global_settings.album_art != AA_OFF &&
hid < 0 && hid != ERR_BUFFER_FULL &&
track_id3->has_embedded_albumart && track_id3->albumart.type == AA_TYPE_JPG)
track_id3->has_embedded_albumart && (track_id3->albumart.type & AA_CLEAR_FLAGS_MASK) == AA_TYPE_JPG)
{
if (is_current_track)
clear_last_folder_album_art();