export: fixed bug that failed to export video if using a different export resolution

This commit is contained in:
itsmattkc
2020-04-23 02:00:49 +10:00
parent a1ec48b978
commit fef29db754
5 changed files with 16 additions and 32 deletions
+2 -4
View File
@@ -516,7 +516,7 @@ ExportParams ExportDialog::GenerateParams() const
AudioRenderingParams audio_render_params(audio_tab_->sample_rate_combobox()->currentData().toInt(),
audio_tab_->channel_layout_combobox()->currentData().toULongLong(),
SampleFormat::GetConfiguredFormatForMode(render_mode));
SampleFormat::kInternalFormat);
ExportParams params;
params.SetFilename(filename_edit_->text());
@@ -533,9 +533,7 @@ ExportParams ExportDialog::GenerateParams() const
video_tab_->GetCodecSection()->AddOpts(&params);
params.set_ocio_output(video_tab_->CurrentOCIODisplay(),
video_tab_->CurrentOCIOView(),
video_tab_->CurrentOCIOLook());
params.set_color_transform(video_tab_->CurrentOCIOColorSpace());
}
if (audio_enabled_->isChecked()) {