提交 e8447023 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Fix jsoncpp usage and possible crash.

上级 164e94f5
......@@ -30,7 +30,7 @@ namespace RTC
MS_THROW_ERROR("empty RtpHeaderExtensionParameters.uri");
// `id` is mandatory.
if (!data[k_id].asUInt())
if (!data[k_id].isUInt())
MS_THROW_ERROR("missing RtpHeaderExtensionParameters.id");
this->id = (uint16_t)data[k_id].asUInt();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论