[vlc-devel] commit: theora: use VLC_TS_INVALID (refs #3135) ( Rafaël Carré )
git version control
git at videolan.org
Mon Dec 7 17:55:09 CET 2009
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec 7 17:47:03 2009 +0100| [4cf39c42ea876f99b249a752ad18a7a4705a4bdb] | committer: Rafaël Carré
theora: use VLC_TS_INVALID (refs #3135)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4cf39c42ea876f99b249a752ad18a7a4705a4bdb
---
modules/codec/theora.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/theora.c b/modules/codec/theora.c
index 0815212..6f96ff5 100644
--- a/modules/codec/theora.c
+++ b/modules/codec/theora.c
@@ -144,7 +144,7 @@ static int OpenDecoder( vlc_object_t *p_this )
return VLC_ENOMEM;
p_dec->p_sys->b_packetizer = false;
- p_sys->i_pts = 0;
+ p_sys->i_pts = VLC_TS_INVALID;
p_sys->b_decoded_first_keyframe = false;
/* Set output properties */
@@ -431,7 +431,7 @@ static void *ProcessPacket( decoder_t *p_dec, ogg_packet *p_oggpacket,
}
/* Date management */
- if( p_block->i_pts > 0 && p_block->i_pts != p_sys->i_pts )
+ if( p_block->i_pts > VLC_TS_INVALID && p_block->i_pts != p_sys->i_pts )
{
p_sys->i_pts = p_block->i_pts;
}
More information about the vlc-devel
mailing list