[vlc-commits] image: fix block size for decoded picture (fixes #14547)

Rémi Denis-Courmont git at videolan.org
Wed May 6 23:03:02 CEST 2015


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May  7 00:02:10 2015 +0300| [cc5786b10933562dfe4d95792b6052e1a0cea94e] | committer: Rémi Denis-Courmont

image: fix block size for decoded picture (fixes #14547)

(cherry picked from commit ba19bb5eadaa42d7f115969ba289910a6ef1a6c8)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=cc5786b10933562dfe4d95792b6052e1a0cea94e
---

 modules/demux/image.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/demux/image.c b/modules/demux/image.c
index 5b56913..7809312 100644
--- a/modules/demux/image.c
+++ b/modules/demux/image.c
@@ -147,8 +147,7 @@ static block_t *Decode(demux_t *demux,
 
     size_t size = 0;
     for (int i = 0; i < image->i_planes; i++)
-        size += image->p[i].i_visible_pitch *
-                image->p[i].i_visible_lines;
+        size += image->p[i].i_pitch * image->p[i].i_lines;
 
     data = block_Alloc(size);
     if (!data) {



More information about the vlc-commits mailing list