]> git.sesse.net Git - vlc/commitdiff
Reset the timestamp state on BLOCK_FLAG_DISCONTINUITY.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 7 May 2009 18:45:47 +0000 (20:45 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 7 May 2009 18:45:47 +0000 (20:45 +0200)
 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.

modules/codec/schroedinger.c

index 06102c68cb6b962d69b678183459f3f4c21a5c8d..c7726f308795d9fdd35d06f638956d052c3e2d37 100644 (file)
@@ -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;