aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/eatgv.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-10-23 19:22:52 +0200
committerMans Rullgard <mans@mansr.com>2012-10-23 18:57:24 +0100
commite831b3b852a23cd24f2941e68bd65299ce306880 (patch)
tree9a11a298e00d0a164de65d1742cec9cd7b9e9b88 /libavcodec/eatgv.c
parentd82f188504410fdfa446c5682c128c31bb5851a4 (diff)
downloadffmpeg-e831b3b852a23cd24f2941e68bd65299ce306880.tar.gz
av_memcpy_backptr: Drop no longer necessary malloc padding
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/eatgv.c')
-rw-r--r--libavcodec/eatgv.c3
1 files changed, 1 insertions, 2 deletions
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);