[vlc-devel] commit: faad: use VLC_TS_INVALID (refs #3135) ( Rafaël Carré )
git version control
git at videolan.org
Mon Dec 7 08:50:42 CET 2009
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec 7 08:36:25 2009 +0100| [09591d853c585a9c9fe3e0eacdcb440608badb4f] | committer: Rafaël Carré
faad: use VLC_TS_INVALID (refs #3135)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=09591d853c585a9c9fe3e0eacdcb440608badb4f
---
modules/codec/faad.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/faad.c b/modules/codec/faad.c
index c09919f..7bda944 100644
--- a/modules/codec/faad.c
+++ b/modules/codec/faad.c
@@ -295,7 +295,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
date_Init( &p_sys->date, i_rate, 1 );
}
- if( p_block->i_pts != 0 && p_block->i_pts != date_Get( &p_sys->date ) )
+ if( p_block->i_pts > VLC_TS_INVALID && p_block->i_pts != date_Get( &p_sys->date ) )
{
date_Set( &p_sys->date, p_block->i_pts );
}
@@ -364,7 +364,7 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
date_Init( &p_sys->date, frame.samplerate, 1 );
date_Set( &p_sys->date, p_block->i_pts );
}
- p_block->i_pts = 0; /* PTS is valid only once */
+ p_block->i_pts = VLC_TS_INVALID; /* PTS is valid only once */
p_dec->fmt_out.audio.i_rate = frame.samplerate;
p_dec->fmt_out.audio.i_channels = frame.channels;
More information about the vlc-devel
mailing list