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

sdl_image: use VLC_TS_INVALID (refs #3135)

parent 97c5499d
......@@ -263,7 +263,8 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
}
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;
SDL_FreeSurface( p_surface );
block_Release( p_block ); *pp_block = NULL;
......
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