Skip to content

Commit

Permalink
Fix compile error in previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Jan 15, 2015
1 parent e4e5724 commit 3ed94b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docks/encodedock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ Mlt::Properties* EncodeDock::collectProperties(int realtime)
else { // RateControlQuality
const QString& vcodec = ui->videoCodecCombo->currentText();
int vq = ui->videoQualitySpinner->value();
if (vcodec == "libx264" || vcodec="libx265")
if (vcodec == "libx264" || vcodec == "libx265")
p->set("crf", TO_ABSOLUTE(51, 0, vq));
else
p->set("qscale", TO_ABSOLUTE(31, 1, vq));
Expand Down Expand Up @@ -617,7 +617,7 @@ void EncodeDock::on_presetsTree_clicked(const QModelIndex &index)
if (ui->videoRateControlCombo->currentIndex() == RateControlQuality && videoQuality > -1) {
const QString& vcodec = ui->videoCodecCombo->currentText();
//val = min + (max - min) * paramval;
if (vcodec == "libx264" || vcodec="libx265") // 0 (best, 100%) -51 (worst)
if (vcodec == "libx264" || vcodec == "libx265") // 0 (best, 100%) -51 (worst)
ui->videoQualitySpinner->setValue(TO_RELATIVE(51, 0, videoQuality));
else // 1 (best, NOT 100%) - 31 (worst)
ui->videoQualitySpinner->setValue(TO_RELATIVE(31, 1, videoQuality));
Expand Down

0 comments on commit 3ed94b2

Please sign in to comment.