Browse Source

smoothstream: check malloc calls

Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n2.3
Nidhi Makhijani Anton Khirnov 11 years ago
parent
commit
e0d01dc7d7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/smoothstreamingenc.c

+ 2
- 0
libavformat/smoothstreamingenc.c 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)


Loading…
Cancel
Save