Commit c62a68c5 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: asf: use send_time as preroll

Otherwise would buffer a preroll + min track delay
parent a3bdf53b
...@@ -801,7 +801,7 @@ static int DemuxPayload(demux_t *p_demux, struct asf_packet_t *pkt, int i_payloa ...@@ -801,7 +801,7 @@ static int DemuxPayload(demux_t *p_demux, struct asf_packet_t *pkt, int i_payloa
goto skip; goto skip;
} }
bool b_preroll_done = ( i_base_pts > p_sys->i_preroll_start/1000 ); bool b_preroll_done = ( pkt->send_time > p_sys->i_preroll_start/1000 );
if (i_base_pts < 0) i_base_pts = 0; // FIXME? if (i_base_pts < 0) i_base_pts = 0; // FIXME?
i_base_pts *= 1000; i_base_pts *= 1000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment