From 85407c7e63722a2d723257e8cf5f281a8c9f34a4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 12 Nov 2016 12:31:34 +0100 Subject: avcodec/mpegvideo: Fix edge emu buffer overlap with interlaced mpeg4 Fixes Ticket5936 Regression since c5fc8ae12622a507d7b9ee30ddcd3734e6de6b1d Signed-off-by: Michael Niedermayer --- libavcodec/mpegpicture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/mpegpicture.c') diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c index 6748fc2986..302f9d20d3 100644 --- a/libavcodec/mpegpicture.c +++ b/libavcodec/mpegpicture.c @@ -76,7 +76,7 @@ int ff_mpeg_framesize_alloc(AVCodecContext *avctx, MotionEstContext *me, // at uvlinesize. It supports only YUV420 so 24x24 is enough // linesize * interlaced * MBsize // we also use this buffer for encoding in encode_mb_internal() needig an additional 32 lines - FF_ALLOCZ_ARRAY_OR_GOTO(avctx, sc->edge_emu_buffer, alloc_size, 4 * 68, + FF_ALLOCZ_ARRAY_OR_GOTO(avctx, sc->edge_emu_buffer, alloc_size, 4 * 70, fail); FF_ALLOCZ_ARRAY_OR_GOTO(avctx, me->scratchpad, alloc_size, 4 * 16 * 2, -- cgit v1.2.1