summaryrefslogtreecommitdiffhomepage
path: root/cv
diff options
context:
space:
mode:
Diffstat (limited to 'cv')
-rw-r--r--cv/video-widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cv/video-widget.cpp b/cv/video-widget.cpp
index f125bf76..146ddc3f 100644
--- a/cv/video-widget.cpp
+++ b/cv/video-widget.cpp
@@ -71,7 +71,7 @@ void cv_video_widget::update_image(const QImage& img)
if (freshp)
return;
- const unsigned nbytes = img.sizeInBytes();
+ const unsigned nbytes = img.bytesPerLine() * img.height();
vec.resize(nbytes);