diff options
author | Siarhei Siamashka <siarhei.siamashka@gmail.com> | 2008-07-15 23:00:29 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2008-07-15 23:00:29 +0000 |
commit | 589790c29413ded9d52b03a160bd2beade435629 (patch) | |
tree | a998be019f92347a95ff1d58f127da27bd227516 | |
parent | 64b9d48f765ff6bf6c6e41edf690c56a4e0cdb8b (diff) | |
download | ffmpeg-589790c29413ded9d52b03a160bd2beade435629.tar.gz |
OGG: Add padding at end of Vorbis headers
Patch by Siarhei Siamashka <siarhei.siamashka gmail com>
Originally committed as revision 14249 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/oggparsevorbis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index 29e6d91b68..b116273f8c 100644 --- a/libavformat/oggparsevorbis.c +++ b/libavformat/oggparsevorbis.c @@ -146,7 +146,7 @@ fixup_vorbis_headers(AVFormatContext * as, oggvorbis_private_t *priv, memcpy(&ptr[offset], priv->packet[i], priv->len[i]); offset += priv->len[i]; } - *buf = av_realloc(*buf, offset); + *buf = av_realloc(*buf, offset + FF_INPUT_BUFFER_PADDING_SIZE); return offset; } |