Commit 003189d4 authored by Rafaël Carré's avatar Rafaël Carré

packetizer copy : use VLC_TS_INVALID

refs #3135
parent 8b8cb3ec
......@@ -140,14 +140,14 @@ static block_t *Packetize ( decoder_t *p_dec, block_t **pp_block )
p_block = *pp_block;
*pp_block = NULL;
if( p_block->i_dts <= 0 )
if( p_block->i_dts <= VLC_TS_INVALID )
{
p_block->i_dts = p_block->i_pts;
}
if( p_block->i_dts <= 0 )
if( p_block->i_dts <= VLC_TS_INVALID )
{
msg_Dbg( p_dec, "need dts > 0" );
msg_Dbg( p_dec, "need valid dts" );
block_Release( p_block );
return NULL;
}
......@@ -179,14 +179,14 @@ static block_t *PacketizeSub( decoder_t *p_dec, block_t **pp_block )
p_block = *pp_block;
*pp_block = NULL;
if( p_block->i_dts <= 0 )
if( p_block->i_dts <= VLC_TS_INVALID )
{
p_block->i_dts = p_block->i_pts;
}
if( p_block->i_dts <= 0 )
if( p_block->i_dts <= VLC_TS_INVALID )
{
msg_Dbg( p_dec, "need dts > 0" );
msg_Dbg( p_dec, "need valid dts" );
block_Release( p_block );
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