-
Notifications
You must be signed in to change notification settings - Fork 77
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
FAAD 2.8.8 crashes with some MP4 files (e.g. Youtube) where 2.7 did not #13
Comments
Update: Problem is caused by the following line returning
We get division by zero, because But I guess the "real" problem here is that the returned The first couple of calls to I tried to insert a continue statement in case that (So, once NULL was returned, all subsequent calls return NULL as well) |
I guess the decoder should simply abort if there is an AAC frame that it cannot parse.
What if you add |
If I add a My guess: The new MP4 parsing code introduced in FAAD v2.8 does not support MP4 files containing a video stream – or, more generally, MP4 files with more than a single stream – yet. If we have more than one stream, the "MDAT" atom of the MP4 file will contain chunks of the various streams, in an interleaved fashion. For this reason, it is necessary to parse the chunk offsets and lengths from the tables in the "MOOV" atom, and then jump to the chunks belonging to the desired stream. Simply assuming that the "MDAT" atom contains a sequence of AAC frames (all belonging to the same stream) is not going work for files with more than one stream! ...and thus for most MP4 files out there. I hope this can be fixed, because otherwise we will be stuck with FAAD 2.7 😟 |
Just wondering, any chance for a fix? ❓ |
Bump ✨ |
Hello.
It was brought to my attention that latest FAAD v2.8.8. (built latest sources straight from Git master) crashes with certain MP4 files, e.g. MP4 files downloaded from YouTube.
FAAD v2.7 works flawlessly on these exact files!
I tracked down the problem to a "division by zero" error at this line:
Sample file (zipped) to reproduce the issue is here:
https://files.fm/u/bf4ugc6k
Regards,
MuldeR
The text was updated successfully, but these errors were encountered: