Skip to content
Commit b8223de8 authored by Fabian Vogt's avatar Fabian Vogt
Browse files

Don't crash if initializeVideo fails

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.

Reviewers: broulik

Reviewed By: broulik

Differential Revision: https://phabricator.kde.org/D16631
parent 6fa26cdd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment