Commit d8639247 authored by Rafaël Carré's avatar Rafaël Carré

png: use VLC_TS_INVALID (refs #3135)

parent 7b8d1eba
......@@ -227,7 +227,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
png_destroy_read_struct( &p_png, &p_info, &p_end_info );
free( p_row_pointers );
p_pic->date = p_block->i_pts > 0 ? p_block->i_pts : p_block->i_dts;
p_pic->date = p_block->i_pts > VLC_TS_INVALID ? p_block->i_pts : p_block->i_dts;
block_Release( p_block ); *pp_block = NULL;
return p_pic;
......
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