diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-17 02:12:51 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-17 02:12:51 +0100 |
commit | 13d201581a10be0ca2a0523248a7348c712e0ad9 (patch) | |
tree | 8d16c1361de4ee89dd7603e560b095cecdb734d5 /cv | |
parent | 1c93b24a0f750ddca2d8a929f4836f520671618e (diff) |
fix build (2)
Diffstat (limited to 'cv')
-rw-r--r-- | cv/video-widget.cpp | 2 |
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); |