提交 0e0e8422 authored 作者: José Luis Millán's avatar José Luis Millán

#215. Check if there is room for the indicated NAL unit size. Thanks @ggarber

上级 d9f50248
......@@ -50,6 +50,10 @@ namespace RTC
break;
}
// Check if there is room for the indicated NAL unit size.
if (len <= naluSize)
break;
offset += naluSize + sizeof(naluSize);
len -= naluSize + sizeof(naluSize);
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论