From de6db645def2104a800b0646cfd2bc700f3e462b Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Fri, 6 May 2022 23:19:31 +0100 Subject: [PATCH] Update audioconverter.cpp --- audioconverter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/audioconverter.cpp b/audioconverter.cpp index 3545752..9b4b6b6 100644 --- a/audioconverter.cpp +++ b/audioconverter.cpp @@ -78,6 +78,11 @@ audioConverter::~audioConverter() bool audioConverter::convert(audioPacket audio) { + if (audio.data.size() == 0) + { + return false; + } + if (inFormat.codec() == "audio/opus") { unsigned char* in = (unsigned char*)audio.data.data();