Skip to content

Commit

Permalink
astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Dec 11, 2023
1 parent 866f964 commit e1f6f3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/docks/encodedock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ void EncodeDock::loadPresetFromProperties(Mlt::Properties &preset)
if (vcodec.startsWith("libx264") || vcodec == "libx265" || vcodec.contains("nvenc")
|| vcodec.endsWith("_amf") || vcodec.endsWith("_vaapi")) {
// 0 (best, 100%) - 51 (worst)
const auto qmax = QString::fromLatin1(preset.get("vcodec")) =="libaom-av1" ? 63 : maxQpNvenc(vcodec);
const auto qmax = QString::fromLatin1(preset.get("vcodec")) == "libaom-av1" ? 63 : maxQpNvenc(
vcodec);
ui->videoQualitySpinner->setValue(TO_RELATIVE(qmax, 0, videoQuality));
} else if (vcodec.endsWith("_videotoolbox")) {
#if defined(Q_OS_MAC) && defined(Q_PROCESSOR_ARM)
Expand Down

0 comments on commit e1f6f3c

Please sign in to comment.