From: Laurent Aimar Date: Thu, 7 May 2009 18:45:47 +0000 (+0200) Subject: Reset the timestamp state on BLOCK_FLAG_DISCONTINUITY. X-Git-Tag: 1.0.0-rc1~30 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=80cfbe0ce1a640841f7ce6a08f8d433b05306812;p=vlc Reset the timestamp state on BLOCK_FLAG_DISCONTINUITY. On such flag, the bitstream before and after it are not related at all and so are the timestamp. In order to not confuse the core, do not output wrong timestamps. --- diff --git a/modules/codec/schroedinger.c b/modules/codec/schroedinger.c index 06102c68cb..c7726f3087 100644 --- a/modules/codec/schroedinger.c +++ b/modules/codec/schroedinger.c @@ -303,6 +303,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) if( p_block->i_flags & BLOCK_FLAG_DISCONTINUITY ) { schro_decoder_reset( p_sys->p_schro ); + p_sys->i_lastpts = -1; block_Release( p_block ); *pp_block = NULL; return NULL;