[FFmpeg-cvslog] diracdec: allocate enough space for blocks
Michael Niedermayer
git at videolan.org
Sun Nov 11 04:02:36 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Nov 11 03:35:10 2012 +0100| [7dab48bb73abafbb00dbb4cb84db838292388790] | committer: Michael Niedermayer
diracdec: allocate enough space for blocks
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7dab48bb73abafbb00dbb4cb84db838292388790
---
libavcodec/diracdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c
index a8f5938..3d42a9d 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));
More information about the ffmpeg-cvslog
mailing list