]> git.sesse.net Git - vlc/commitdiff
demux: avi: use vlc_ts_0
authorFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 16 Sep 2014 17:23:18 +0000 (19:23 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 17 Sep 2014 19:28:31 +0000 (21:28 +0200)
modules/demux/avi/avi.c

index 7881917e1752e04c7a9a8b7a259ea617511b6d10..2b122238622a84c8b874749c93f20a7c719aff23 100644 (file)
@@ -1216,7 +1216,7 @@ static int Demux_Seekable( demux_t *p_demux )
             continue;
         }
 
-        p_frame->i_pts = AVI_GetPTS( tk ) + 1;
+        p_frame->i_pts = VLC_TS_0 + AVI_GetPTS( tk );
         if( tk->idx.p_entry[tk->i_idxposc].i_flags&AVIIF_KEYFRAME )
         {
             p_frame->i_flags = BLOCK_FLAG_TYPE_I;
@@ -1383,7 +1383,7 @@ static int Demux_UnSeekable( demux_t *p_demux )
                 {
                     return( -1 );
                 }
-                p_frame->i_pts = AVI_GetPTS( p_stream ) + 1;
+                p_frame->i_pts = VLC_TS_0 + AVI_GetPTS( p_stream );
 
                 if( avi_pk.i_cat != VIDEO_ES )
                     p_frame->i_dts = p_frame->i_pts;