[FFmpeg-cvslog] r19181 - trunk/libavformat/mpc8.c
kostya
subversion
Sat Jun 13 08:39:01 CEST 2009
Author: kostya
Date: Sat Jun 13 08:39:01 2009
New Revision: 19181
Log:
Allocate a bit more memory for MPC SV8 seek table, so bitreader won't read
beyond allocated block.
Modified:
trunk/libavformat/mpc8.c
Modified: trunk/libavformat/mpc8.c
==============================================================================
--- trunk/libavformat/mpc8.c Sat Jun 13 05:02:16 2009 (r19180)
+++ trunk/libavformat/mpc8.c Sat Jun 13 08:39:01 2009 (r19181)
@@ -97,7 +97,7 @@ static void mpc8_parse_seektable(AVForma
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);
More information about the ffmpeg-cvslog
mailing list