diff --git a/src/drivers/Qt/AviRecord.cpp b/src/drivers/Qt/AviRecord.cpp index 9fd787d4..cf108666 100644 --- a/src/drivers/Qt/AviRecord.cpp +++ b/src/drivers/Qt/AviRecord.cpp @@ -80,11 +80,11 @@ extern "C" static gwavi_t *gwavi = NULL; static bool recordEnable = false; static bool recordAudio = true; -static std::atomic vbufHead = 0; -static std::atomic vbufTail = 0; +static std::atomic vbufHead(0); +static std::atomic vbufTail(0); static constexpr int vbufSize = 1024 * 1024 * 64; -static std::atomic abufHead = 0; -static std::atomic abufTail = 0; +static std::atomic abufHead(0); +static std::atomic abufTail(0); static constexpr int abufSize = 256 * 1024; static uint32_t *rawVideoBuf = NULL; static int16_t *rawAudioBuf = NULL;