diff --git a/worker/src/RTC/Codecs/H264_SVC.cpp b/worker/src/RTC/Codecs/H264_SVC.cpp index bb9065b704..199efec1ad 100644 --- a/worker/src/RTC/Codecs/H264_SVC.cpp +++ b/worker/src/RTC/Codecs/H264_SVC.cpp @@ -184,6 +184,11 @@ namespace RTC case 14: case 20: { + if (len <= 1) + { + return nullptr; + } + size_t offset{ 1 }; uint8_t byte = data[offset];