From 4881a45707d6c7030c7258d5f3070a1990a64477 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Fri, 11 Feb 2011 10:58:39 +0000 Subject: [PATCH] Do not warn over profile mismatch because of image aspect ratio svn path=/trunk/kdenlive/; revision=5390 --- src/profilesdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/profilesdialog.cpp b/src/profilesdialog.cpp index 15517ec5..557f6f7c 100644 --- a/src/profilesdialog.cpp +++ b/src/profilesdialog.cpp @@ -411,7 +411,7 @@ bool ProfilesDialog::matchProfile(int width, int height, double fps, double par, // when using image, compare with display width profileWidth = profile.height * profile.display_aspect_num / profile.display_aspect_den + 0.5; } else profileWidth = profile.width; - if (width != profileWidth || height != profile.height || (fps > 0 && qAbs((double) profile.frame_rate_num / profile.frame_rate_den - fps) > 0.4) || (par > 0 && qAbs((double) profile.sample_aspect_num / profile.sample_aspect_den - par) > 0.1)) return false; + if (width != profileWidth || height != profile.height || (fps > 0 && qAbs((double) profile.frame_rate_num / profile.frame_rate_den - fps) > 0.4) || (!isImage && par > 0 && qAbs((double) profile.sample_aspect_num / profile.sample_aspect_den - par) > 0.1)) return false; return true; } -- 2.39.2