1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-10-04 08:17:08 +02:00

Fix c++ if without {}

This commit is contained in:
Elias Steurer 2024-01-05 17:16:51 +01:00
parent 19c16a44ab
commit 72e1231224

View File

@ -568,16 +568,16 @@ bool CreateImportVideo::createWallpaperVideo()
QString targetCodec;
QString targetFileEnding;
if (m_targetCodec == Video::VideoCodec::VP8)
if (m_targetCodec == Video::VideoCodec::VP8) {
targetCodec = "libvpx";
targetFileEnding = ".webm";
if (m_targetCodec == Video::VideoCodec::VP8)
targetCodec = "libvpx";
targetFileEnding = ".webm";
if (m_targetCodec == Video::VideoCodec::AV1)
targetFileEnding = ".webm";
} else if (m_targetCodec == Video::VideoCodec::VP9) {
targetCodec = "libvpx-vp9";
targetFileEnding = ".webm";
} else if (m_targetCodec == Video::VideoCodec::AV1) {
targetCodec = "libaom-av1";
targetFileEnding = ".mkv";
if (m_targetCodec == Video::VideoCodec::H264) {
targetFileEnding = ".mkv";
} else if (m_targetCodec == Video::VideoCodec::H264) {
targetFileEnding = ".mp4";
if (QOperatingSystemVersion::currentType() == QOperatingSystemVersion::Windows) {
targetCodec = "h264_mf";