mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-04-20 09:30:20 +00:00
swscale/graph: don't pointlessly align data buffers
Since d67d81a374, enabling asm explicitly requires aligned malloc,
so this FFALIGN accomplishes nothing.
Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
parent
5121665463
commit
846823b174
1 changed files with 2 additions and 5 deletions
|
|
@ -64,13 +64,10 @@ static int frame_alloc_planes(AVFrame *dst)
|
|||
for (int i = 0; i < 4; i++) {
|
||||
if (!sizes[i])
|
||||
break;
|
||||
if (sizes[i] > SIZE_MAX - align)
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
AVBufferRef *buf = av_buffer_alloc(sizes[i] + align);
|
||||
AVBufferRef *buf = av_buffer_alloc(sizes[i]);
|
||||
if (!buf)
|
||||
return AVERROR(ENOMEM);
|
||||
dst->data[i] = (uint8_t *) FFALIGN((uintptr_t) buf->data, align);
|
||||
dst->data[i] = buf->data;
|
||||
dst->buf[i] = buf;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue