From 24a11e2dad5a01ddd34dc1c15158b4460fa23e1e Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Thu, 25 Nov 2021 15:12:44 -0800 Subject: [PATCH] fixed mistakes in export task --- app/task/export/export.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/task/export/export.cpp b/app/task/export/export.cpp index 93c7d251c..ae7446b1c 100644 --- a/app/task/export/export.cpp +++ b/app/task/export/export.cpp @@ -87,15 +87,14 @@ bool ExportTask::Run() if (params_.video_enabled()) { // If a transformation matrix is applied to this video, create it here - VideoParams vp = viewer()->GetVideoParams(); - if (vp.width() != params_.video_params().width() - || params_.video_params().height() != params_.video_params().height()) { + if (video_params().width() != params_.video_params().width() + || video_params().height() != params_.video_params().height()) { video_force_size = QSize(params_.video_params().width(), params_.video_params().height()); if (params_.video_scaling_method() != ExportParams::kStretch) { video_force_matrix = ExportParams::GenerateMatrix(params_.video_scaling_method(), - vp.width(), - vp.height(), + video_params().width(), + video_params().height(), params_.video_params().width(), params_.video_params().height()); }