[vlc-devel] commit: packetizer copy : use VLC_TS_INVALID ( Rafaël Carré )
git version control
git at videolan.org
Mon Dec 7 07:11:00 CET 2009
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec 7 06:54:36 2009 +0100| [003189d40ca8e2e1ed37cea1a5f2e0cb7bbd47f7] | committer: Rafaël Carré
packetizer copy : use VLC_TS_INVALID
refs #3135
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=003189d40ca8e2e1ed37cea1a5f2e0cb7bbd47f7
---
modules/packetizer/copy.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/packetizer/copy.c b/modules/packetizer/copy.c
index 8207b60..b6046ac 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;
}
More information about the vlc-devel
mailing list