summaryrefslogtreecommitdiffhomepage
path: root/cv
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-05-25 17:37:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-05-25 17:37:29 +0200
commit4a5c75c7ec2cb2becd942579ad9a80dc534fbd37 (patch)
treecfe70775e89f49bd1c0effb24d147e84f640a6d8 /cv
parente1cf07c2e838bece3f1ad2de8d49a7ed0f2513e1 (diff)
cv: fix logic error
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 8ff252c9..289b9cee 100644
--- a/cv/video-widget.cpp
+++ b/cv/video-widget.cpp
@@ -36,7 +36,7 @@ void cv_video_widget::update_image(const cv::Mat& frame)
else
scaled = &frame;
- int color_cvt = 0;
+ int color_cvt = cv::COLOR_COLORCVT_MAX;
constexpr int nchannels = 4;
switch (scaled->channels())