Commit 7abb966d authored by kostya's avatar kostya

Allocate a bit more memory for MPC SV8 seek table, so bitreader won't read

beyond allocated block.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19181 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b622efa7
...@@ -97,7 +97,7 @@ static void mpc8_parse_seektable(AVFormatContext *s, int64_t off) ...@@ -97,7 +97,7 @@ static void mpc8_parse_seektable(AVFormatContext *s, int64_t off)
av_log(s, AV_LOG_ERROR, "No seek table at given position\n"); av_log(s, AV_LOG_ERROR, "No seek table at given position\n");
return; return;
} }
if(!(buf = av_malloc(size))) if(!(buf = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE)))
return; return;
get_buffer(s->pb, buf, size); get_buffer(s->pb, buf, size);
init_get_bits(&gb, buf, size * 8); init_get_bits(&gb, buf, size * 8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment