Commit 47431e19 authored by Tristan Matthews's avatar Tristan Matthews

png: encoder: really fix row offset calculation

parent 932e8a8b
......@@ -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;
}
......
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