diff --git a/modules/codec/wmafixed/wma.c b/modules/codec/wmafixed/wma.c index d261afe95ecd02422d478e8019a7aa4c7f602be8..027d94af5954d9ead112098e8aa62b23f33d9acc 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 ) ) {