aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-02-04 13:09:38 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-02-04 13:12:16 +0100
commit8968ed851605ba914c1dd6457363f4ea9d2c8413 (patch)
treee8367d554151908674f32693f64a670b2dafc7d5
parent8857561a79568d02afa736f283ecdbbdb2b59383 (diff)
qvidcap: properly initialize m_curSize/Data
Both m_curSize[0] and m_curData[0] should be initialized to 0. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/qvidcap/capture.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/qvidcap/capture.cpp b/utils/qvidcap/capture.cpp
index 6c8536be..b7973533 100644
--- a/utils/qvidcap/capture.cpp
+++ b/utils/qvidcap/capture.cpp
@@ -221,11 +221,12 @@ CaptureWin::CaptureWin(QScrollArea *sa, QWidget *parent) :
m_singleStepNext(false),
m_screenTextureCount(0),
m_program(0),
- m_curSize(),
m_curIndex(-1),
m_nextIndex(-1),
m_scrollArea(sa)
{
+ m_curSize[0] = 0;
+ m_curData[0] = 0;
m_canOverrideResolution = false;
m_pixelaspect.numerator = 1;
m_pixelaspect.denominator = 1;

Privacy Policy