[vlc-commits] codec: avcodec: simplify clock set condition
Francois Cartegnie
git at videolan.org
Sun Nov 2 14:48:35 CET 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Nov 2 14:18:00 2014 +0100| [7307480b7a9b72d0f19a155216c608121a174a98] | committer: Francois Cartegnie
codec: avcodec: simplify clock set condition
date is always >= VLC_TS_INVALID
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7307480b7a9b72d0f19a155216c608121a174a98
---
modules/codec/avcodec/audio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index 0812b36..a37f1cf 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -380,8 +380,7 @@ static block_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block )
if( p_dec->fmt_out.audio.i_rate != (unsigned int)ctx->sample_rate )
date_Init( &p_sys->end_date, ctx->sample_rate, 1 );
- if( p_block->i_pts > VLC_TS_INVALID &&
- p_block->i_pts > date_Get( &p_sys->end_date ) )
+ if( p_block->i_pts > date_Get( &p_sys->end_date ) )
{
date_Set( &p_sys->end_date, p_block->i_pts );
}
More information about the vlc-commits
mailing list