]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/oggparsevorbis.c
avformat: add gif pipe demuxer
[ffmpeg] / libavformat / oggparsevorbis.c
index 29b1ab514e642c907aa894aef92600dc9093aec7..bcfd246b8dcf3760ca8d1566b85a6886272b65fa 100644 (file)
@@ -230,6 +230,10 @@ static int fixup_vorbis_headers(AVFormatContext *as,
 
     len = priv->len[0] + priv->len[1] + priv->len[2];
     buf_len = len + len / 255 + 64;
+
+    if (*buf)
+        return AVERROR_INVALIDDATA;
+
     ptr = *buf = av_realloc(NULL, buf_len);
     if (!ptr)
         return AVERROR(ENOMEM);