diff mpc8.c @ 5030:06903f8f7247 libavformat

Allocate a bit more memory for MPC SV8 seek table, so bitreader won't read beyond allocated block.
author kostya
date Sat, 13 Jun 2009 06:39:01 +0000
parents 304a0ea063f0
children 9dea59f5436a
line wrap: on
line diff
--- a/mpc8.c	Sat Jun 13 03:02:16 2009 +0000
+++ b/mpc8.c	Sat Jun 13 06:39:01 2009 +0000
@@ -97,7 +97,7 @@
         av_log(s, AV_LOG_ERROR, "No seek table at given position\n");
         return;
     }
-    if(!(buf = av_malloc(size)))
+    if(!(buf = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE)))
         return;
     get_buffer(s->pb, buf, size);
     init_get_bits(&gb, buf, size * 8);