Don't crash if initializeVideo fails
ClosedPublic

Authored by fvogt on Nov 3 2018, 10:58 AM.

Details

Summary

If avcodec_find_decoder returns NULL, a warning is printed and then NULL is
dereferenced later...

Test Plan

A user crashed thumbnail.so reproducably with a specific file.
Doesn't anymore with this patch applied.

Diff Detail

Repository
R343 FFmpeg Thumbnailers
Branch
Applications/18.08
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 4503
Build 4521: arc lint + arc unit
fvogt requested review of this revision.Nov 3 2018, 10:58 AM
fvogt created this revision.
broulik accepted this revision.Nov 3 2018, 3:12 PM
This revision is now accepted and ready to land.Nov 3 2018, 3:12 PM
This revision was automatically updated to reflect the committed changes.