vlc | branch: master | Steve Lhomme <[email protected]> | Tue Sep 25 12:26:40 
2018 +0200| [babc1300162ab5b57fbc65a9dc92718edbb893c0] | committer: Steve Lhomme

avformat:demux: fix missing VLC_TICK_0 shift

Needed for now

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

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

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 56f7c3843e..a270110b64 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -824,7 +824,7 @@ static int Demux( demux_t *p_demux )
     else
     {
         p_frame->i_dts = vlc_tick_from_frac( pkt.dts * 
p_stream->time_base.num, p_stream->time_base.den )
-                - i_start_time;
+                - i_start_time + VLC_TICK_0;
     }
 
     if( pkt.pts == (int64_t)AV_NOPTS_VALUE )
@@ -832,7 +832,7 @@ static int Demux( demux_t *p_demux )
     else
     {
         p_frame->i_pts = vlc_tick_from_frac( pkt.dts * 
p_stream->time_base.num, p_stream->time_base.den )
-                - i_start_time;
+                - i_start_time + VLC_TICK_0;
     }
     if( pkt.duration > 0 && p_frame->i_length <= 0 )
         p_frame->i_length = vlc_tick_from_samples(pkt.duration *

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to