]> git.sesse.net Git - kdenlive/blobdiff - src/colorcorrection/rgbparadegenerator.cpp
Fix scopes: http://kdenlive.org/mantis/view.php?id=3052
[kdenlive] / src / colorcorrection / rgbparadegenerator.cpp
index f8ad5cd0c6d3481e3bb61daef08d93586c099d6c..e81cdc459a1db01f5c44bb5cb68d8198ea3e73a1 100644 (file)
@@ -89,7 +89,7 @@ QImage RGBParadeGenerator::calculateRGBParade(const QSize &paradeSize, const QIm
         }
 
         const uchar *bits = image.bits();
-        const uint stepsize = 4*accelFactor;
+        const uint stepsize = image.depth() / 8 *accelFactor;
 
         for (uint i = 0, x = 0; i < byteCount; i += stepsize) {
             col = (QRgb *)bits;