-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible bug in m4a parsing #482
Comments
Definitely. Just another case of an error that existed before I am curious, do you know the source of the file? Or if any player can tell what the cover is supposed to be? I wonder how it got that data type. |
@Serial-ATA Good question I'll try to find the source. Apple Music does seem to be able to display the artwork when I load it there. |
Apparently this file originated in Apple Music so I suppose it's not surprising that it shows up there. |
The cover is just a PNG, so I wonder if Apple just ignores data types or introduced a new one for some reason. I don't have Apple Music, could you see if it load this file? test.zip I just took one of the benchmark assets and set a wrong data type, the cover is still a PNG. |
Thanks for the sample. The artwork for the file in your test.zip shows up in both the finder and in Apple Music. Interestingly, the artwork for the file I attached shows up only in Apple Music and not in the finder. Apple Music supports both static images and in some cases animated images for artwork. Maybe this non-standard COVR atom has something to do with that? |
I guess that means they ignore data types and try to read images anyway
I was thinking it might have to do with that, but this is just a normal static PNG so there shouldn't be a reason to use anything but the data type for PNG. I haven't found anyone else talking about this so far, but I imagine if Apple Music is producing these files there's probably a reason? |
I suppose it could also just be another case of Apple being Apple. What do you think is the best way to handle these? Check and see if the data looks like an image and parse it or just skip it? |
That's true. There are multiple hacks in here to try and support old iTunes bugs.
For now I'll just skip it, most others do that anyway. Do you have this issue with other files from Apple Music? If so, I imagine other people will report similar things. |
So far this is the only case I've had reported of this issue. Thanks yet again for such a quick and helpful response! |
Reproducer
I tried this code:
Summary
When trying to read the file I get this panic:
Expected behavior
I don't doubt that there is a bad atom here. Could it be skipped in relaxed mode?
ffprobe output:
Assets
sample.zip
The text was updated successfully, but these errors were encountered: