]> git.sesse.net Git - kdenlive/commitdiff
Fix previewing of affine transitions with transparent png
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 30 Aug 2011 22:14:50 +0000 (22:14 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 30 Aug 2011 22:14:50 +0000 (22:14 +0000)
svn path=/trunk/kdenlive/; revision=5847

src/renderer.cpp

index 66e16ecd695bdc2ffb29ba5aa3dd2c81cea1fa35..796fe40d0d56b498b19dad3e3299695bc615c0a9 100644 (file)
@@ -1473,13 +1473,13 @@ const QString & Render::rendererName() const
 
 void Render::emitFrameUpdated(Mlt::Frame& frame)
 {
-    mlt_image_format format = mlt_image_rgb24a;
+    mlt_image_format format = mlt_image_rgb24;
     int width = 0;
     int height = 0;
     const uchar* image = frame.get_image(format, width, height);
-    QImage qimage(width, height, QImage::Format_ARGB32);
-    memcpy(qimage.bits(), image, width * height * 4);
-    emit frameUpdated(qimage.rgbSwapped());
+    QImage qimage(width, height, QImage::Format_RGB888);
+    memcpy(qimage.bits(), image, width * height * 3);
+    emit frameUpdated(qimage);
 }
 
 void Render::emitFrameNumber(double position)