1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

smoothstream: check malloc calls

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Nidhi Makhijani 2014-05-22 16:20:05 +05:30 committed by Anton Khirnov
parent 8692e6284f
commit e0d01dc7d7

View File

@ -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)