]> git.sesse.net Git - kdenlive/commitdiff
Fix some video clips that cannot match profile because height is 1088
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 22 Dec 2011 17:44:52 +0000 (18:44 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 22 Dec 2011 17:44:52 +0000 (18:44 +0100)
src/projectlist.cpp

index 683500185314d9ebe8dd338421412fc38919c88e..40ad435c10885577717364d1cc39e6b447be32db 100644 (file)
@@ -2110,6 +2110,8 @@ bool ProjectList::adjustProjectProfileToItem(ProjectItem *item)
     QString size = item->referencedClip()->getProperty("frame_size");
     int width = size.section('x', 0, 0).toInt();
     int height = size.section('x', -1).toInt();
+    // Fix some avchd clips tht report a wrong size (1920x1088)
+    if (height == 1088) height = 1080;
     double fps = item->referencedClip()->getProperty("fps").toDouble();
     double par = item->referencedClip()->getProperty("aspect_ratio").toDouble();
     if (item->clipType() == IMAGE || item->clipType() == AV || item->clipType() == VIDEO) {