aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-28 06:28:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-28 06:28:21 +0200
commit504475f38ef049996c2c7954de00e92668a05de5 (patch)
treeba2ee7fa6b5cafaa504b3e0e39a7080c094d7ebe /libavcodec/mpegvideo.c
parent21bfed5b06f01c26734132d5d672db03594152c0 (diff)
downloadffmpeg-504475f38ef049996c2c7954de00e92668a05de5.tar.gz
avcodec/mpegvideo: dont overwrite emu_edge buffer
Fixes vsynth3 fate failures on mips Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 4d1a70f33c..ef8905ab2c 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -450,7 +450,8 @@ static int frame_size_alloc(MpegEncContext *s, int linesize)
// VC1 computes luma and chroma simultaneously and needs 19X19 + 9x9
// at uvlinesize. It supports only YUV420 so 24x24 is enough
// linesize * interlaced * MBsize
- FF_ALLOCZ_OR_GOTO(s->avctx, s->edge_emu_buffer, alloc_size * 4 * 24,
+ // we also use this buffer for encoding in encode_mb_internal() needig an additional 32 lines
+ FF_ALLOCZ_OR_GOTO(s->avctx, s->edge_emu_buffer, alloc_size * 4 * 68,
fail);
FF_ALLOCZ_OR_GOTO(s->avctx, s->me.scratchpad, alloc_size * 4 * 16 * 2,