[vlc-devel] commit: Reset the timestamp state on BLOCK_FLAG_DISCONTINUITY. ( Laurent Aimar )
git version control
git at videolan.org
Thu May 7 21:13:31 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu May 7 20:45:47 2009 +0200| [80cfbe0ce1a640841f7ce6a08f8d433b05306812] | committer: Laurent Aimar
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80cfbe0ce1a640841f7ce6a08f8d433b05306812
---
modules/codec/schroedinger.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/codec/schroedinger.c b/modules/codec/schroedinger.c
index 06102c6..c7726f3 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;
More information about the vlc-devel
mailing list