[vlc-devel] commit: cvdsub: use VLC_TS_INVALID (refs #3135) ( Rafaël Carré )
git version control
git at videolan.org
Mon Dec 7 08:50:41 CET 2009
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec 7 08:25:57 2009 +0100| [aac89d7dd5f29196f640e0177af77808fa5a618e] | committer: Rafaël Carré
cvdsub: use VLC_TS_INVALID (refs #3135)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aac89d7dd5f29196f640e0177af77808fa5a618e
---
modules/codec/cvdsub.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/codec/cvdsub.c b/modules/codec/cvdsub.c
index d91dbc6..0ca7c0d 100644
--- a/modules/codec/cvdsub.c
+++ b/modules/codec/cvdsub.c
@@ -230,7 +230,7 @@ static block_t *Reassemble( decoder_t *p_dec, block_t *p_block )
* to detect the first packet in a subtitle. The first packet
* seems to have a valid PTS while later packets for the same
* image don't. */
- if( p_sys->i_state == SUBTITLE_BLOCK_EMPTY && p_block->i_pts == 0 )
+ if( p_sys->i_state == SUBTITLE_BLOCK_EMPTY && p_block->i_pts <= VLC_TS_INVALID )
{
msg_Warn( p_dec, "first packet expected but no PTS present");
return NULL;
More information about the vlc-devel
mailing list