Commit b28f5a1e authored by Tristan Matthews's avatar Tristan Matthews

png: encoder: really fix row offset calculation

(cherry picked from commit 47431e192bbaefe723c7b6915a54f3ab4ca440e8)
parent 8d8617bb
...@@ -405,9 +405,9 @@ static block_t *EncodeBlock(encoder_t *p_enc, picture_t *p_pic) ...@@ -405,9 +405,9 @@ static block_t *EncodeBlock(encoder_t *p_enc, picture_t *p_pic)
/* Encode picture */ /* 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; if( p_sys->b_error ) goto error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment