提交 e0d01dc7 编写于 作者: N Nidhi Makhijani 提交者: Anton Khirnov

smoothstream: check malloc calls

Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 8692e628
......@@ -154,6 +154,8 @@ static void get_private_data(OutputStream *os)
if (!ptr)
return;
os->private_str = av_mallocz(2*size + 1);
if (!os->private_str)
return;
for (i = 0; i < size; i++)
snprintf(&os->private_str[2*i], 3, "%02x", ptr[i]);
if (ptr != codec->extradata)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册