Commit f687992b authored by Francois Cartegnie's avatar Francois Cartegnie

demux: read chunk if pos + sample size > target (fix #11166)

If first chunk is greater than first samples duration, the
data is never read/sent.
(segmented mp4 related, demux tries to read 100ms (CLOCK_FREQ/10)
- [0] duration=133ms media time=-1ms) rate=1.0
- [1] duration=667034ms media time=66ms) rate=1.0
parent b74243c8
...@@ -720,7 +720,8 @@ static int Demux( demux_t *p_demux ) ...@@ -720,7 +720,8 @@ static int Demux( demux_t *p_demux )
if( !tk->b_ok || tk->b_chapter || !tk->b_selected || tk->i_sample >= tk->i_sample_count ) if( !tk->b_ok || tk->b_chapter || !tk->b_selected || tk->i_sample >= tk->i_sample_count )
continue; continue;
while( MP4_TrackGetDTS( p_demux, tk ) < i_targettime ) while( MP4_TrackGetDTS( p_demux, tk ) < i_targettime
|| ( p_sys->i_pcr == VLC_TS_INVALID && !b_data_sent ) )
{ {
#if 0 #if 0
msg_Dbg( p_demux, "tk(%i)=%lld mv=%lld", i_track, msg_Dbg( p_demux, "tk(%i)=%lld mv=%lld", i_track,
......
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