Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-11 06:35:10 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-11-11 07:01:39 +0400
commit7dab48bb73abafbb00dbb4cb84db838292388790 (patch)
treeabbad2d4111e9b2eec71a95607fb380189d75635 /libavcodec/diracdec.c
parentdca2fa10d37022684c61166be59294c9f98530d4 (diff)
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/diracdec.c')
-rw-r--r--libavcodec/diracdec.c2
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));