[vlc-commits] demux: asf: remove preroll from dts too

Francois Cartegnie git at videolan.org
Wed Dec 11 20:18:24 CET 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 11 20:16:27 2013 +0100| [244ff6ab44d6ad9d53ea5c53b7b95ce45f73c37d] | committer: Francois Cartegnie

demux: asf: remove preroll from dts too

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

 modules/demux/asf/asf.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index e1add65..f0f81d1 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -806,6 +806,7 @@ static int DemuxPayload(demux_t *p_demux, struct asf_packet_t *pkt, int i_payloa
         mtime_t i_payload_pts = i_base_pts + (mtime_t)i_pts_delta * i_subpayload_count * 1000;
         i_payload_pts -= tk->p_sp->i_time_offset * 10;
         mtime_t i_payload_dts = INT64_C(1000) * pkt->send_time;
+        i_payload_dts -= p_sys->p_fp->i_preroll * 1000;
         i_payload_dts -= tk->p_sp->i_time_offset * 10;
 
         if ( i_sub_payload_data_length &&



More information about the vlc-commits mailing list