diff --git a/VCECore/rgy_version.h b/VCECore/rgy_version.h index e357e1fa..fc6d7b69 100644 --- a/VCECore/rgy_version.h +++ b/VCECore/rgy_version.h @@ -29,9 +29,9 @@ #ifndef __RGY_VERSION_H__ #define __RGY_VERSION_H__ -#define VER_FILEVERSION 0,5,2,0 -#define VER_STR_FILEVERSION "5.02" -#define VER_STR_FILEVERSION_TCHAR _T("5.02") +#define VER_FILEVERSION 0,5,3,0 +#define VER_STR_FILEVERSION "5.03" +#define VER_STR_FILEVERSION_TCHAR _T("5.03") #ifdef _M_IX86 diff --git a/VCECore/vce_cmd.cpp b/VCECore/vce_cmd.cpp index 149f8400..01e2e59e 100644 --- a/VCECore/vce_cmd.cpp +++ b/VCECore/vce_cmd.cpp @@ -390,8 +390,8 @@ int parse_one_option(const TCHAR *option_name, const TCHAR* strInput[], int& i, } pParams->rateControl = AMF_VIDEO_ENCODER_RATE_CONTROL_METHOD_CONSTANT_QP; pParams->nQPI = qp[0]; - pParams->nQPP = qp[1]; - pParams->nQPB = qp[2]; + pParams->nQPP = (ret > 1) ? qp[1] : qp[ret - 1]; + pParams->nQPB = (ret > 2) ? qp[2] : qp[ret - 1]; return 0; } if (IS_OPTION("vbr")) {