From 45b2a2c28e403e1143778a3a70fae762ba8102f6 Mon Sep 17 00:00:00 2001 From: lordmulder Date: Thu, 1 May 2014 15:58:56 +0200 Subject: [PATCH] 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. --- src/encoder_abstract.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoder_abstract.cpp b/src/encoder_abstract.cpp index d0144ad..ae8ef8f 100644 --- a/src/encoder_abstract.cpp +++ b/src/encoder_abstract.cpp @@ -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."));