[vlc-devel] commit: codec/schroedinger: don't reset decoder at corrupt block sentinel ( David Flynn )

git version control git at videolan.org
Thu May 7 17:42:05 CEST 2009


vlc | branch: master | David Flynn <davidf at rd.bbc.co.uk> | Thu May  7 12:47:38 2009 +0000| [1a24f157b0da4a98fea8646d49a2e2ceb6d4d119] | committer: Rémi Denis-Courmont 

codec/schroedinger: don't reset decoder at corrupt block sentinel

Also, don't reset pts interpolator at discontinuity

Signed-off-by: David Flynn <davidf at rd.bbc.co.uk>
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1a24f157b0da4a98fea8646d49a2e2ceb6d4d119
---

 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;




More information about the vlc-devel mailing list