changeset 3584:c3c1b9302005 libavformat

OGG: Add padding at end of Vorbis headers Patch by Siarhei Siamashka <siarhei.siamashka gmail com>
author mru
date Tue, 15 Jul 2008 23:00:29 +0000
parents a81d82e21714
children 8806473c40bf
files oggparsevorbis.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/oggparsevorbis.c	Mon Jul 14 22:55:07 2008 +0000
+++ b/oggparsevorbis.c	Tue Jul 15 23:00:29 2008 +0000
@@ -146,7 +146,7 @@
         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;
 }