aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-13 15:32:57 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-13 16:22:45 +0100
commitd18df8beb0a0ba1fe22b1fa3a2ea1dc679f100f7 (patch)
tree4ca37b881409c7f3d0cd5791c5869e84aaa1ccf3 /libavutil
parentdab493c89ec3798d39fac47ad542b076567226d3 (diff)
downloadffmpeg-d18df8beb0a0ba1fe22b1fa3a2ea1dc679f100f7.tar.gz
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>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/imgutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c
index 3320664702..5c2870323c 100644
--- a/libavutil/imgutils.c
+++ b/libavutil/imgutils.c
@@ -370,7 +370,7 @@ int av_image_get_buffer_size(enum AVPixelFormat pix_fmt,
// do not include palette for these pseudo-paletted formats
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,
width, height, align);