mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
avutil/imgutils: do not ignore align parameter for pseudo-pal in av_image_get_buffer_size()
Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
dab493c89e
commit
d18df8beb0
@ -370,7 +370,7 @@ int av_image_get_buffer_size(enum AVPixelFormat pix_fmt,
|
|||||||
|
|
||||||
// do not include palette for these pseudo-paletted formats
|
// do not include palette for these pseudo-paletted formats
|
||||||
if (desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL)
|
if (desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL)
|
||||||
return width * height;
|
return FFALIGN(width, align) * height;
|
||||||
|
|
||||||
return av_image_fill_arrays(data, linesize, NULL, pix_fmt,
|
return av_image_fill_arrays(data, linesize, NULL, pix_fmt,
|
||||||
width, height, align);
|
width, height, align);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user