[vlc-commits] codec: avcodec: use TS_INVALID for 0 time init
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:15:55 2014 +0100| [09acd6df1bab5ab3423ac4674539ab62dead90e2] | committer: Francois Cartegnie
codec: avcodec: use TS_INVALID for 0 time init
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=09acd6df1bab5ab3423ac4674539ab62dead90e2
---
modules/codec/avcodec/audio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index 530181a..0812b36 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -276,7 +276,7 @@ int InitAudioDec( decoder_t *p_dec, AVCodecContext *p_context,
/* Try to set as much information as possible but do not trust it */
SetupOutputFormat( p_dec, false );
- date_Set( &p_sys->end_date, 0 );
+ date_Set( &p_sys->end_date, VLC_TS_INVALID );
if( p_dec->fmt_out.audio.i_rate )
date_Init( &p_sys->end_date, p_dec->fmt_out.audio.i_rate, 1 );
else if( p_dec->fmt_in.audio.i_rate )
@@ -311,7 +311,7 @@ static block_t *DecodeAudio( decoder_t *p_dec, block_t **pp_block )
if( p_block->i_flags & (BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) )
{
avcodec_flush_buffers( ctx );
- date_Set( &p_sys->end_date, 0 );
+ date_Set( &p_sys->end_date, VLC_TS_INVALID );
if( ctx->codec_id == AV_CODEC_ID_MP2 ||
ctx->codec_id == AV_CODEC_ID_MP3 )
More information about the vlc-commits
mailing list