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

subsdec: use VLC_TS_INVALID (refs #3135)

parent 61f757bb
......@@ -407,7 +407,7 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
video_format_t fmt;
/* We cannot display a subpicture with no date */
if( p_block->i_pts == 0 )
if( p_block->i_pts <= VLC_TS_INVALID )
{
msg_Warn( p_dec, "subtitle without a date" );
return 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