X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fpacketizer%2Fcopy.c;h=b6046ac21e55d211d60068aed91041324bef249c;hb=736cc6b8930b8c97f2cda4d1dc55c7de6f9701a0;hp=8207b609a96b028e44a43147e3613bfbbb064fbb;hpb=152b1687c0ec112f3ab1360006d048d6b9cf7258;p=vlc diff --git a/modules/packetizer/copy.c b/modules/packetizer/copy.c index 8207b609a9..b6046ac21e 100644 --- a/modules/packetizer/copy.c +++ b/modules/packetizer/copy.c @@ -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; }