There are two reasons for this: 1- If FFmpeg failed to create a decoder ; and a function such as Drain is called : it will cause a null deref. 2- The MediaFormatReader attempts to flush / drain the decoder even when we failed to create one.
Created attachment 8663501 [details] [diff] [review] Prevent potential null deref when flushing decoder.
Comment on attachment 8663501 [details] [diff] [review] Prevent potential null deref when flushing decoder. no wonder you had conflict ; the r? wasn't set :(
Going to merge this bug with bug 1206568 as I don't want to wait and it also fixed the issue (albeit differently)
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1206568
You need to log in before you can comment on or make changes to this bug.