mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
av_memcpy_backptr: Drop no longer necessary malloc padding
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
committed by
Mans Rullgard
parent
d82f188504
commit
e831b3b852
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user