Closed Bug 1206567 Opened 6 years ago Closed 6 years ago
FFmpeg decoder will crash should we failed to create decoder
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.
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
Closed: 6 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1206568
You need to log in before you can comment on or make changes to this bug.