diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-20 03:53:27 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-20 03:58:13 +0100 |
commit | 73db0bf1b06084022db5f42377b3b7960b3d3f5e (patch) | |
tree | 2fa67ef268c72ec283b52094db8c91848275d02b /libavcodec/mpegvideo.c | |
parent | 53fa6f58632e1c08da8e961fcf3663973d59c39d (diff) | |
download | ffmpeg-73db0bf1b06084022db5f42377b3b7960b3d3f5e.tar.gz |
mpegvideo: increase scratchpad sizes
These where reduced in f1d8763a02b5fce9a7d9789e049d74a45b15e1e8
and this change can cause out of array accesses.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 5889e1c73a..43671ee191 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -244,7 +244,7 @@ int ff_mpv_frame_size_alloc(MpegEncContext *s, int linesize) FF_ALLOCZ_OR_GOTO(s->avctx, s->edge_emu_buffer, alloc_size * 4 * 24, fail); - FF_ALLOCZ_OR_GOTO(s->avctx, s->me.scratchpad, alloc_size * 2 * 16 * 2, + FF_ALLOCZ_OR_GOTO(s->avctx, s->me.scratchpad, alloc_size * 4 * 16 * 2, fail) s->me.temp = s->me.scratchpad; s->rd_scratchpad = s->me.scratchpad; |