]> git.sesse.net Git - kdenlive/blobdiff - src/renderer.cpp
Fixed: All scopes were working forever when the input image had size 0
[kdenlive] / src / renderer.cpp
index 3f5cf863224c1253c687c94ddcd52728f02c0c6d..07c2e98cea472828661ed3ec5ef02edfffdc1224 100644 (file)
@@ -1447,8 +1447,8 @@ void Render::emitFrameUpdated(Mlt::Frame& frame)
     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);
+    memcpy(qimage.bits(), image, width * height * 4);
+    emit frameUpdated(qimage.rgbSwapped());
 }
 
 void Render::emitFrameNumber(double position)