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; }