Commit 4ca34125 authored by conrad's avatar conrad

oggdec: Fix memory leak in setting up vorbis headers

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22460 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1a58ec88
......@@ -153,6 +153,7 @@ fixup_vorbis_headers(AVFormatContext * as, struct oggvorbis_private *priv,
for (i = 0; i < 3; i++) {
memcpy(&ptr[offset], priv->packet[i], priv->len[i]);
offset += priv->len[i];
av_freep(&priv->packet[i]);
}
*buf = av_realloc(*buf, offset + FF_INPUT_BUFFER_PADDING_SIZE);
return offset;
......
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