[vlc-commits] png: encoder: really fix row offset calculation
Tristan Matthews
git at videolan.org
Sat Oct 11 04:47:16 CEST 2014
vlc/vlc-2.2 | branch: master | Tristan Matthews <tmatth at videolan.org> | Fri Oct 10 22:32:13 2014 -0400| [b28f5a1eb1417364b4fe08d105b8faf3efa68e56] | committer: Tristan Matthews
png: encoder: really fix row offset calculation
(cherry picked from commit 47431e192bbaefe723c7b6915a54f3ab4ca440e8)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=b28f5a1eb1417364b4fe08d105b8faf3efa68e56
---
modules/codec/png.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/png.c b/modules/codec/png.c
index 46d31af..781bacf 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -405,9 +405,9 @@ static block_t *EncodeBlock(encoder_t *p_enc, picture_t *p_pic)
/* Encode picture */
- for( int i = 0; i < p_pic->p->i_lines; i++ )
+ 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_pitch) );
+ png_write_row( p_png, p_pic->p->p_pixels + (i * p_pic->p->i_visible_pitch) );
if( p_sys->b_error ) goto error;
}
More information about the vlc-commits
mailing list