]> git.sesse.net Git - kdenlive/commitdiff
Fix crash in images related to deinterlace changes in MLT:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 15 Sep 2012 09:44:38 +0000 (11:44 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 15 Sep 2012 09:44:38 +0000 (11:44 +0200)
http://www.kdenlive.org/mantis/view.php?id=2734

src/kthumb.cpp

index 428d43738775bc22cf0f1e7782f968392f4eb190..bdd6d9689ad240ac90f68243074fba2a167da734 100644 (file)
@@ -205,7 +205,9 @@ QImage KThumb::getFrame(Mlt::Frame *frame, int frameWidth, int displayWidth, int
     int ow = frameWidth;
     int oh = height;
     mlt_image_format format = mlt_image_rgb24a;
-
+    frame->set("rescale.interp", "nearest");
+    frame->set("deinterlace_method", "onefield");
+    frame->set("progressive", "1");
     const uchar* imagedata = frame->get_image(format, ow, oh);
     QImage image(ow, oh, QImage::Format_ARGB32_Premultiplied);
     memcpy(image.bits(), imagedata, ow * oh * 4);//.byteCount());