Commit 033f1644 authored by Michael Niedermayer's avatar Michael Niedermayer

fixup_vorbis_headers: add missing malloc failure check

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0451ff29
......@@ -179,6 +179,8 @@ fixup_vorbis_headers(AVFormatContext * as, struct oggvorbis_private *priv,
len = priv->len[0] + priv->len[1] + priv->len[2];
buf_len = len + len/255 + 64;
ptr = *buf = av_realloc(NULL, buf_len);
if (!*buf)
return 0;
memset(*buf, '\0', buf_len);
ptr[0] = 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment