diff options
author | Diego Biurrun | 2012-10-23 19:22:52 +0200 |
---|---|---|
committer | Mans Rullgard | 2012-10-23 18:57:24 +0100 |
commit | e831b3b852a23cd24f2941e68bd65299ce306880 (patch) | |
tree | 9a11a298e00d0a164de65d1742cec9cd7b9e9b88 /libavcodec/eatgv.c | |
parent | d82f188504410fdfa446c5682c128c31bb5851a4 (diff) |
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.c | 3 |
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); |