[vlc-commits] png: encoder: encode visible lines, but use pitch for offset

Tristan Matthews git at videolan.org
Sat Oct 11 06:13:31 CEST 2014


vlc/vlc-2.2 | branch: master | Tristan Matthews <tmatth at videolan.org> | Sat Oct 11 00:09:21 2014 -0400| [3e8036a5f6b9fc4a3dd3baaea8a81102dcd4bdd5] | committer: Tristan Matthews

png: encoder: encode visible lines, but use pitch for offset

(cherry picked from commit fd1e287a11d678a8e131d59979e84fb4486c0c57)

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

 modules/codec/png.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/png.c b/modules/codec/png.c
index 781bacf..33f7515 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -407,7 +407,7 @@ static block_t *EncodeBlock(encoder_t *p_enc, picture_t *p_pic)
 
     for( int i = 0; i < p_pic->p->i_visible_lines; i++ )
     {
-        png_write_row( p_png, p_pic->p->p_pixels + (i * p_pic->p->i_visible_pitch) );
+        png_write_row( p_png, p_pic->p->p_pixels + (i * p_pic->p->i_pitch) );
         if( p_sys->b_error ) goto error;
     }
 



More information about the vlc-commits mailing list