aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>2008-07-15 23:00:29 +0000
committerMåns Rullgård <mans@mansr.com>2008-07-15 23:00:29 +0000
commit589790c29413ded9d52b03a160bd2beade435629 (patch)
treea998be019f92347a95ff1d58f127da27bd227516
parent64b9d48f765ff6bf6c6e41edf690c56a4e0cdb8b (diff)
downloadffmpeg-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.c2
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;
}