X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fencoder_x265.cpp;h=99eb23073ee2f77dba654c072cb03fc537c29c4e;hb=8804ea0748acde6ec96f3ab0b9e260b841507be6;hp=17c584d46ed522ffb387424b0bfd9ccf895062d8;hpb=82f12a59a4a0c82209f87fe3dc4c50261ba4ae24;p=x264-launcher%2Fx264-launcher.git diff --git a/src/encoder_x265.cpp b/src/encoder_x265.cpp index 17c584d..99eb230 100644 --- a/src/encoder_x265.cpp +++ b/src/encoder_x265.cpp @@ -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());