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

cvdsub: use VLC_TS_INVALID (refs #3135)

parent 782d17df
......@@ -230,7 +230,7 @@ static block_t *Reassemble( decoder_t *p_dec, block_t *p_block )
* to detect the first packet in a subtitle. The first packet
* seems to have a valid PTS while later packets for the same
* image don't. */
if( p_sys->i_state == SUBTITLE_BLOCK_EMPTY && p_block->i_pts == 0 )
if( p_sys->i_state == SUBTITLE_BLOCK_EMPTY && p_block->i_pts <= VLC_TS_INVALID )
{
msg_Warn( p_dec, "first packet expected but no PTS present");
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