Commit 73db0bf1 authored by Michael Niedermayer's avatar Michael Niedermayer

mpegvideo: increase scratchpad sizes

These where reduced in f1d8763a
and this change can cause out of array accesses.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 53fa6f58
...@@ -244,7 +244,7 @@ int ff_mpv_frame_size_alloc(MpegEncContext *s, int linesize) ...@@ -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, FF_ALLOCZ_OR_GOTO(s->avctx, s->edge_emu_buffer, alloc_size * 4 * 24,
fail); 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) fail)
s->me.temp = s->me.scratchpad; s->me.temp = s->me.scratchpad;
s->rd_scratchpad = s->me.scratchpad; s->rd_scratchpad = s->me.scratchpad;
......
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