1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-10-04 16:27:07 +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 targetCodec;
QString targetFileEnding; QString targetFileEnding;
if (m_targetCodec == Video::VideoCodec::VP8) if (m_targetCodec == Video::VideoCodec::VP8) {
targetCodec = "libvpx"; targetCodec = "libvpx";
targetFileEnding = ".webm"; targetFileEnding = ".webm";
if (m_targetCodec == Video::VideoCodec::VP8) } else if (m_targetCodec == Video::VideoCodec::VP9) {
targetCodec = "libvpx"; targetCodec = "libvpx-vp9";
targetFileEnding = ".webm"; targetFileEnding = ".webm";
if (m_targetCodec == Video::VideoCodec::AV1) } else if (m_targetCodec == Video::VideoCodec::AV1) {
targetCodec = "libaom-av1"; targetCodec = "libaom-av1";
targetFileEnding = ".mkv"; targetFileEnding = ".mkv";
if (m_targetCodec == Video::VideoCodec::H264) { } else if (m_targetCodec == Video::VideoCodec::H264) {
targetFileEnding = ".mp4"; targetFileEnding = ".mp4";
if (QOperatingSystemVersion::currentType() == QOperatingSystemVersion::Windows) { if (QOperatingSystemVersion::currentType() == QOperatingSystemVersion::Windows) {
targetCodec = "h264_mf"; targetCodec = "h264_mf";