# HG changeset patch # User kostya # Date 1244875141 0 # Node ID 06903f8f72470e50d4ee673bd22feda8e6f80be1 # Parent b811d7012aaabda82bfeb14ba5035f94a0eff4c9 Allocate a bit more memory for MPC SV8 seek table, so bitreader won't read beyond allocated block. diff -r b811d7012aaa -r 06903f8f7247 mpc8.c --- 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);