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

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


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

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

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

 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 d91791f..d8a9d23 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