diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-11 03:35:10 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-11 04:01:39 +0100 |
commit | 7dab48bb73abafbb00dbb4cb84db838292388790 (patch) | |
tree | abbad2d4111e9b2eec71a95607fb380189d75635 /libavcodec | |
parent | dca2fa10d37022684c61166be59294c9f98530d4 (diff) | |
download | ffmpeg-7dab48bb73abafbb00dbb4cb84db838292388790.tar.gz |
diracdec: allocate enough space for blocks
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/diracdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c index a8f59386a6..3d42a9d3f0 100644 --- a/libavcodec/diracdec.c +++ b/libavcodec/diracdec.c @@ -346,7 +346,7 @@ static int alloc_sequence_buffers(DiracContext *s) /* fixme: allocate using real stride here */ s->sbsplit = av_malloc(sbwidth * sbheight); - s->blmotion = av_malloc(sbwidth * sbheight * 4 * sizeof(*s->blmotion)); + s->blmotion = av_malloc(sbwidth * sbheight * 16 * sizeof(*s->blmotion)); s->edge_emu_buffer_base = av_malloc((w+64)*MAX_BLOCKSIZE); s->mctmp = av_malloc((w+64+MAX_BLOCKSIZE) * (h*MAX_BLOCKSIZE) * sizeof(*s->mctmp)); |