Don't assume the encoder has crashed when the exit code is -1, since x264 will return -1 when it could not open the input file.

This commit is contained in:
LoRd_MuldeR 2014-05-01 15:58:56 +02:00
parent 04b19f3ecc
commit 45b2a2c28e

View File

@ -215,7 +215,7 @@ bool AbstractEncoder::runEncodingPass(AbstractSource* pipedSource, const QString
if(!(bTimeout || bAborted))
{
const int exitCode = processEncode.exitCode();
if((exitCode < 0) || (exitCode >= 32))
if((exitCode < -1) || (exitCode >= 32))
{
log(tr("\nFATAL ERROR: The encoder process has *crashed* -> your encode probably is *incomplete* !!!"));
log(tr("Note that this indicates a bug in the current encoder, *not* in Simple x264/x265 Launcher."));