From e715c83044de384c345c9c04e5748d60cbd83215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 7 Dec 2009 17:38:21 +0100 Subject: [PATCH] wmafixed: use VLC_TS_INVALID (refs #3135) --- modules/codec/wmafixed/wma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/codec/wmafixed/wma.c b/modules/codec/wmafixed/wma.c index d261afe95e..027d94af59 100644 --- a/modules/codec/wmafixed/wma.c +++ b/modules/codec/wmafixed/wma.c @@ -229,12 +229,12 @@ static aout_buffer_t *DecodeFrame( decoder_t *p_dec, block_t **pp_block ) } /* Date management */ - if( p_block->i_pts > 0 && + if( p_block->i_pts > VLC_TS_INVALID && p_block->i_pts != date_Get( &p_sys->end_date ) ) { date_Set( &p_sys->end_date, p_block->i_pts ); /* don't reuse the same pts */ - p_block->i_pts = 0; + p_block->i_pts = VLC_TS_INVALID; } else if( !date_Get( &p_sys->end_date ) ) { -- GitLab