[vlc-devel] [PATCH 4/4] codec/schroedinger: don't reset decoder at corrupt block sentinel

davidf+nntp at woaf.net davidf+nntp at woaf.net
Thu May 7 14:47:38 CEST 2009


From: David Flynn <davidf at rd.bbc.co.uk>

Also, don't reset pts interpolator at discontinuity

Signed-off-by: David Flynn <davidf at rd.bbc.co.uk>
---
 modules/codec/schroedinger.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/codec/schroedinger.c b/modules/codec/schroedinger.c
index d854f57..06102c6 100644
--- a/modules/codec/schroedinger.c
+++ b/modules/codec/schroedinger.c
@@ -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;
-- 
1.5.6.5




More information about the vlc-devel mailing list