OSDN Git Service

Updated x265 and NVEncC versions.
[x264-launcher/x264-launcher.git] / src / encoder_x265.cpp
index 4601065..0d6c7cf 100644 (file)
@@ -39,8 +39,8 @@
 #include <QPair>
 
 //x265 version info
-static const unsigned int VERSION_X265_MINIMUM_VER =  19;
-static const unsigned int VERSION_X265_MINIMUM_REV = 140;
+static const unsigned int VERSION_X265_MINIMUM_VER = 20;
+static const unsigned int VERSION_X265_MINIMUM_REV = 16;
 
 // ------------------------------------------------------------
 // Helper Macros
@@ -303,12 +303,12 @@ void X265Encoder::buildCommandLine(QStringList &cmdLine, const bool &usePipe, co
        switch(m_options->rcMode())
        {
        case 0:
-               cmdLine << "--qp" << QString::number(qRound(m_options->quantizer()));
-               break;
-       case 1:
                crf_frc = modf(m_options->quantizer(), &crf_int);
                cmdLine << "--crf" << QString("%1.%2").arg(QString::number(qRound(crf_int)), QString::number(qRound(crf_frc * 10.0)));
                break;
+       case 1:
+               cmdLine << "--qp" << QString::number(qRound(m_options->quantizer()));
+               break;
        case 2:
        case 3:
                cmdLine << "--bitrate" << QString::number(m_options->bitrate());