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

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


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

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

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

 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