[vlc-commits] demux:avi: use samples_from_vlc_tick for PTS conversion

Steve Lhomme git at videolan.org
Tue Sep 25 12:19:47 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Sep 25 08:23:54 2018 +0200| [6c3bef5f18bf1647c33fd495367a3192e33bb8ca] | committer: Steve Lhomme

demux:avi: use samples_from_vlc_tick for PTS conversion

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

 modules/demux/avi/avi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index dbd569f73b..a634f9955b 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1727,7 +1727,7 @@ static int64_t AVI_PTSToByte( avi_track_t *tk, vlc_tick_t i_pts )
         return 0;
 
     i_pts = AVI_Rescale( i_pts, tk->i_scale, tk->i_rate );
-    return i_pts / CLOCK_FREQ * tk->i_samplesize;
+    return samples_from_vlc_tick(i_pts, tk->i_samplesize);
 }
 
 static vlc_tick_t AVI_GetDPTS( avi_track_t *tk, int64_t i_count )



More information about the vlc-commits mailing list