From: Jean-Baptiste Mardelle Date: Sat, 15 Sep 2012 09:44:38 +0000 (+0200) Subject: Fix crash in images related to deinterlace changes in MLT: X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=861d83ee58b4d9e1a699097da18610c6b93c639b;p=kdenlive Fix crash in images related to deinterlace changes in MLT: http://www.kdenlive.org/mantis/view.php?id=2734 --- diff --git a/src/kthumb.cpp b/src/kthumb.cpp index 428d4373..bdd6d968 100644 --- a/src/kthumb.cpp +++ b/src/kthumb.cpp @@ -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());