-
Notifications
You must be signed in to change notification settings - Fork 141
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
AAC: thread 'main' panicked at 'called Option::unwrap()
on a None
value'
#64
Comments
I think #58 may resolve this panic (it won't make your file playable though). I haven't had a chance to go through the PR yet though. Can you give your file a try via. Also, if you're okay with sharing your file, I wouldn't mind seeing if I can make it playable. The issue in #58 was only found through fuzzing, so you've found a real life example of it. |
Yea, that fixes it; ~$ ./target/debug/symphonia-play "BK/003.png"
+ BK/003.png
|
| // Tracks //
| [01] Codec: Advanced Audio Coding (aac)
| Sample Rate: 0
:
ERROR symphonia_codec_aac::aac > check failed at symphonia-codec-aac/src/aac.rs:1620
ERROR symphonia_play > error: malformed stream: aac: invalid data It's actually a png file 👀 💦 . |
That's a unique use-case I didn't think of 😅. It should be fine most of the time, but there may be a few false positives. It may make sense to filter by file extension first before trying to get Symphonia to read it. Constructing decoders can also be expensive for some codecs, so you may see a performance uplift if you're doing this with many files. I also merged #58, so you can point your Please let me know if you see anymore panics as well. |
The culprit seems to be:
https://github.com/pdeljanov/Symphonia/blob/master/symphonia-codec-aac/src/aac.rs#L1623
Expected: returns
Err
Actual: panics
I can probably write a fix for this, but not really sure what error to throw
The text was updated successfully, but these errors were encountered: