Commit 4cf39c42 authored by Rafaël Carré's avatar Rafaël Carré

theora: use VLC_TS_INVALID (refs #3135)

parent 7d5e8877
......@@ -144,7 +144,7 @@ static int OpenDecoder( vlc_object_t *p_this )
return VLC_ENOMEM;
p_dec->p_sys->b_packetizer = false;
p_sys->i_pts = 0;
p_sys->i_pts = VLC_TS_INVALID;
p_sys->b_decoded_first_keyframe = false;
/* Set output properties */
......@@ -431,7 +431,7 @@ static void *ProcessPacket( decoder_t *p_dec, ogg_packet *p_oggpacket,
}
/* Date management */
if( p_block->i_pts > 0 && p_block->i_pts != p_sys->i_pts )
if( p_block->i_pts > VLC_TS_INVALID && p_block->i_pts != p_sys->i_pts )
{
p_sys->i_pts = p_block->i_pts;
}
......
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