Commit 5e177435 authored by Rafaël Carré's avatar Rafaël Carré

png encoder: really compress

return the encoded block size rather than the raw YUV size
parent 934d64c3
......@@ -421,7 +421,7 @@ static block_t *EncodeBlock(encoder_t *p_enc, picture_t *p_pic)
/* restore original buffer position */
p_block->p_buffer = p_start;
p_block->i_buffer = i_start;
p_block->i_buffer = i_start - p_block->i_buffer;
p_block->i_dts = p_block->i_pts = p_pic->date;
......
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