[vlc-commits] demux: avi: use vlc_ts_0

Francois Cartegnie git at videolan.org
Wed Sep 17 21:41:35 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Sep 16 19:23:18 2014 +0200| [de73d8fe16ee738a04fc131c4b40d3889462e38a] | committer: Francois Cartegnie

demux: avi: use vlc_ts_0

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

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

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 7881917..2b12223 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -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;



More information about the vlc-commits mailing list