Don't crash if initializeVideo fails

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

Description

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

Details

Committed
fvogtNov 3 2018, 3:25 PM
Reviewer
broulik
Differential Revision
D16631: Don't crash if initializeVideo fails
Parents
R343:6fa26cddeff4: Check whether a frame could be decoded before seeking
Branches
Unknown
Tags
Unknown
References
tag: v18.08.3, Applications/18.08