diff options
-rw-r--r-- | cv/video-widget.cpp | 2 | ||||
-rw-r--r-- | tracker-udp/ftnoir_tracker_udp.h | 1 |
2 files changed, 2 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); diff --git a/tracker-udp/ftnoir_tracker_udp.h b/tracker-udp/ftnoir_tracker_udp.h index 1db67256..1bf6b0a6 100644 --- a/tracker-udp/ftnoir_tracker_udp.h +++ b/tracker-udp/ftnoir_tracker_udp.h @@ -21,6 +21,7 @@ struct settings : opts { class udp : protected QThread, public ITracker { + Q_OBJECT public: udp(); ~udp() override; |