You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
M4A (MP4): No pictures are found (0.25.0 regression) #698
The following code (based on examples/tag_reader.rs) shows that no pictures are found when given a path to an M4A file:
use lofty::prelude::*;use lofty::probe::Probe;use std::path::Path;fnmain(){let path_str = std::env::args().nth(1).expect("ERROR: No path specified!");let path = Path::new(&path_str);assert!(path.is_file(),"ERROR: Path is not a file!");let tagged_file = Probe::open(path).expect("ERROR: Bad path provided!").read().expect("ERROR: Failed to read file!");let tag = match tagged_file.primary_tag(){Some(primary_tag) => primary_tag,None => tagged_file.first_tag().expect("ERROR: No tags found!"),};dbg!(tag.picture_count());dbg!(tag.pictures().len());}
Lofty no longer finds pictures in M4A files as of version 0.25.0 (also reproducible using the latest commit)
Expected behavior
Lofty should be able to find the picture tags, as it could in prior versions
Assets
I've attached an example file (containing one second of silence and a low resolution version of the Lofty logo assigned as a picture tag) which can be used to reproduce this issue. (It is an M4A file appended with .mp4, because GitHub does not accept M4A).
Activity
Serial-ATA commentedon Aug 15, 2026
Good catch, thanks!