Refined parameter validation code. Parameters in the "--param=value" format are now accepted.

This commit is contained in:
LoRd_MuldeR 2015-10-14 21:21:20 +02:00
parent 3da3e72a6d
commit 6f5b3c4e4b
2 changed files with 6 additions and 2 deletions

View File

@ -26,7 +26,7 @@
#define VER_X264_MAJOR 2 #define VER_X264_MAJOR 2
#define VER_X264_MINOR 6 #define VER_X264_MINOR 6
#define VER_X264_PATCH 0 #define VER_X264_PATCH 0
#define VER_X264_BUILD 968 #define VER_X264_BUILD 970
#define VER_X264_PORTABLE_EDITION (0) #define VER_X264_PORTABLE_EDITION (0)

View File

@ -159,7 +159,11 @@ protected:
{ {
for(int i = 2; i < iter->length(); i++) for(int i = 2; i < iter->length(); i++)
{ {
if((!iter->at(i).isLetter()) && (iter->at(i) != '-')) if((iter->at(i) == QLatin1Char('=')) && (i > 2) && (i + 1 < iter->length()))
{
break; /*to allow "--param=value" format*/
}
if((!iter->at(i).isLetter()) && ((iter->at(i) != QLatin1Char('-')) || (i < 3)))
{ {
if(m_notifier) if(m_notifier)
{ {