Bail out if stream is negative

Authored by broulik on Feb 5 2019, 11:19 AM.

Description

Bail out if stream is negative

Documentation says it returns "the non-negative stream number in case of success".

It can also return AVERROR_DECODER_NOT_FOUND which is -1381258232 and not -1,
leading to crashes when trying to preview video files without video streams.

Differential Revision: https://phabricator.kde.org/D18750

Details

Committed
broulikFeb 5 2019, 11:19 AM
Differential Revision
D18750: Bail out if stream is negative
Parents
R343:1ece967efbfe: i18n: allow to translate the configuration
Branches
Unknown
Tags
Unknown
References
tag: v18.12.3, Applications/18.12