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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
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.