]> git.sesse.net Git - vlc/commitdiff
codec/schroedinger: don't reset decoder at corrupt block sentinel
authorDavid Flynn <davidf@rd.bbc.co.uk>
Thu, 7 May 2009 12:47:38 +0000 (12:47 +0000)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 7 May 2009 15:36:30 +0000 (18:36 +0300)
Also, don't reset pts interpolator at discontinuity

Signed-off-by: David Flynn <davidf@rd.bbc.co.uk>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/codec/schroedinger.c

index d854f573170eff9187bdc1093eb8972580bd1dc3..06102c68cb6b962d69b678183459f3f4c21a5c8d 100644 (file)
@@ -300,11 +300,9 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
 
         /* reset the decoder when seeking as the decode in progress is invalid */
         /* discard the block as it is just a null magic block */
-        if( p_block->i_flags & (BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) ) {
+        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;