[vlc-commits] demux: asf: correctly flag invalid time

Francois Cartegnie git at videolan.org
Tue Dec 3 19:00:34 CET 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 26 15:27:37 2013 +0100| [01e03b9a0e20b74e875306dd5d0404716617c1a6] | committer: Francois Cartegnie

demux: asf: correctly flag invalid time

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

 modules/demux/asf/asf.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index cc0a861..f169d37 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -330,14 +330,14 @@ static void SeekPrepare( demux_t *p_demux )
 {
     demux_sys_t *p_sys = p_demux->p_sys;
 
-    p_sys->i_time = -1;
+    p_sys->i_time = VLC_TS_INVALID;
     for( int i = 0; i < 128 ; i++ )
     {
         asf_track_t *tk = p_sys->track[i];
         if( !tk )
             continue;
 
-        tk->i_time = 1;
+        tk->i_time = VLC_TS_INVALID;
         if( tk->p_frame )
             block_ChainRelease( tk->p_frame );
         tk->p_frame = NULL;



More information about the vlc-commits mailing list