From e831b3b852a23cd24f2941e68bd65299ce306880 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Tue, 23 Oct 2012 19:22:52 +0200 Subject: av_memcpy_backptr: Drop no longer necessary malloc padding Signed-off-by: Mans Rullgard --- libavcodec/eatgv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/eatgv.c') diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c index b29c99418c..404238b6ef 100644 --- a/libavcodec/eatgv.c +++ b/libavcodec/eatgv.c @@ -294,8 +294,7 @@ static int tgv_decode_frame(AVCodecContext *avctx, s->frame.buffer_hints = FF_BUFFER_HINTS_VALID; s->frame.linesize[0] = s->width; - /* allocate additional 12 bytes to accommodate av_memcpy_backptr() OUTBUF_PADDED optimisation */ - s->frame.data[0] = av_malloc(s->width*s->height + 12); + s->frame.data[0] = av_malloc(s->width * s->height); if (!s->frame.data[0]) return AVERROR(ENOMEM); s->frame.data[1] = av_malloc(AVPALETTE_SIZE); -- cgit v1.2.3