OSDN Git Service

Updated version history.
[x264-launcher/x264-launcher.git] / src / encoder_x264.cpp
index 770a2cd..84182ce 100644 (file)
@@ -39,8 +39,8 @@
 #include <QPair>
 
 //x264 version info
-static const unsigned int VERSION_X264_MINIMUM_REV = 2668;
-static const unsigned int VERSION_X264_CURRENT_API = 148;
+static const unsigned int VERSION_X264_MINIMUM_REV = 2708;
+static const unsigned int VERSION_X264_CURRENT_API =  148;
 
 // ------------------------------------------------------------
 // Helper Macros
@@ -312,12 +312,12 @@ void X264Encoder::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());