Skip to content

Commit

Permalink
Update outputsettings.cpp
Browse files Browse the repository at this point in the history
Add fallback profile state, else old presets will default to 0 for profile (might be anything).
rodlie committed Mar 30, 2024
1 parent b630c79 commit 5c819c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/outputsettings.cpp
Original file line number Diff line number Diff line change
@@ -253,7 +253,8 @@ void OutputSettingsProfile::load(const QString &path)
.toUtf8()
.data());
mSettings.fVideoBitrate = profile.value(QString::fromUtf8("video_bitrate")).toInt();
mSettings.fVideoProfile = profile.value(QString::fromUtf8("video_profile")).toInt();
mSettings.fVideoProfile = profile.value(QString::fromUtf8("video_profile"),
FF_PROFILE_UNKNOWN).toInt();
}
mSettings.fAudioEnabled = profileAudioEnabled;
if (mSettings.fAudioEnabled) {

0 comments on commit 5c819c1

Please sign in to comment.