Added option to by-pass the Avisynth check. Not recommended!
This commit is contained in:
parent
9829729d7f
commit
a0991e1137
@ -151,6 +151,7 @@ The following command-line switches are available:
|
|||||||
--console ............... Show the "debug" console
|
--console ............... Show the "debug" console
|
||||||
--no-console ............ Don't show the "debug" console
|
--no-console ............ Don't show the "debug" console
|
||||||
--no-style .............. Don't use the Qt "Plastique" style
|
--no-style .............. Don't use the Qt "Plastique" style
|
||||||
|
--skip-avisynth-check ... Skip Avisynth check (not recommended!)
|
||||||
--force-cpu-no-64bit .... Forcefully disable 64-Bit support
|
--force-cpu-no-64bit .... Forcefully disable 64-Bit support
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#define VER_X264_MAJOR 2
|
#define VER_X264_MAJOR 2
|
||||||
#define VER_X264_MINOR 0
|
#define VER_X264_MINOR 0
|
||||||
#define VER_X264_PATCH 2
|
#define VER_X264_PATCH 2
|
||||||
#define VER_X264_BUILD 175
|
#define VER_X264_BUILD 177
|
||||||
|
|
||||||
#define VER_X264_MINIMUM_REV 2146
|
#define VER_X264_MINIMUM_REV 2146
|
||||||
#define VER_X264_CURRENT_API 120
|
#define VER_X264_CURRENT_API 120
|
||||||
|
@ -677,6 +677,8 @@ void MainWindow::init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Check for Avisynth support
|
//Check for Avisynth support
|
||||||
|
if(!qApp->arguments().contains("--skip-avisynth-check", Qt::CaseInsensitive))
|
||||||
|
{
|
||||||
double avisynthVersion = 0.0;
|
double avisynthVersion = 0.0;
|
||||||
QLibrary *avsLib = new QLibrary("avisynth.dll");
|
QLibrary *avsLib = new QLibrary("avisynth.dll");
|
||||||
if(avsLib->load())
|
if(avsLib->load())
|
||||||
@ -694,6 +696,7 @@ void MainWindow::init(void)
|
|||||||
avsLib->unload(); X264_DELETE(avsLib);
|
avsLib->unload(); X264_DELETE(avsLib);
|
||||||
if(val != 1) { close(); qApp->exit(-1); return; }
|
if(val != 1) { close(); qApp->exit(-1); return; }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Check for expiration
|
//Check for expiration
|
||||||
if(x264_version_date().addMonths(6) < QDate::currentDate())
|
if(x264_version_date().addMonths(6) < QDate::currentDate())
|
||||||
@ -1052,7 +1055,7 @@ double MainWindow::detectAvisynthVersion(QLibrary *avsLib)
|
|||||||
{
|
{
|
||||||
if(avs_is_float(avs_version))
|
if(avs_is_float(avs_version))
|
||||||
{
|
{
|
||||||
qDebug("Avisynth version: v%f", avs_as_float(avs_version));
|
qDebug("Avisynth version: v%.2f", avs_as_float(avs_version));
|
||||||
version_number = avs_as_float(avs_version);
|
version_number = avs_as_float(avs_version);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user