From: Jean-Baptiste Mardelle Date: Wed, 26 Sep 2012 22:25:54 +0000 (+0200) Subject: Make sure thumbnails request a width that is a multiple of 2, fixes current thumb... X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=91bbd7aab80b69fff349cbfa3828a3e0b94a38ea;p=kdenlive Make sure thumbnails request a width that is a multiple of 2, fixes current thumb corruption in MLT --- diff --git a/src/kthumb.cpp b/src/kthumb.cpp index bdd6d968..350f14f4 100644 --- a/src/kthumb.cpp +++ b/src/kthumb.cpp @@ -207,7 +207,9 @@ QImage KThumb::getFrame(Mlt::Frame *frame, int frameWidth, int displayWidth, int mlt_image_format format = mlt_image_rgb24a; frame->set("rescale.interp", "nearest"); frame->set("deinterlace_method", "onefield"); - frame->set("progressive", "1"); + frame->set("top_field_first", -1 ); + //frame->set("progressive", "1"); + if (ow % 2 == 1) ow++; 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());