git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54aa64e
)
Reset the timestamp state on BLOCK_FLAG_DISCONTINUITY.
author
Laurent Aimar
<fenrir@videolan.org>
Thu, 7 May 2009 18:45:47 +0000
(20:45 +0200)
committer
Laurent 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
patch
|
blob
|
history
diff --git
a/modules/codec/schroedinger.c
b/modules/codec/schroedinger.c
index
06102c6
..
c7726f3
100644
(file)
--- 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;