[FFmpeg-cvslog] avutil/imgutils: do not ignore align parameter for pseudo-pal in av_image_get_buffer_size( )

Michael Niedermayer git at videolan.org
Sat Feb 13 16:35:12 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Feb 13 15:32:57 2016 +0100| [d18df8beb0a0ba1fe22b1fa3a2ea1dc679f100f7] | committer: Michael Niedermayer

avutil/imgutils: do not ignore align parameter for pseudo-pal in av_image_get_buffer_size()

Reviewed-by: Stefano Sabatini <stefasab at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d18df8beb0a0ba1fe22b1fa3a2ea1dc679f100f7
---

 libavutil/imgutils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c
index 3320664..5c28703 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);



More information about the ffmpeg-cvslog mailing list