Commit 3cebf08d authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: ignore SPU when setting PCR

otherwise breaks PCR update on seek
parent afc9003f
...@@ -930,7 +930,9 @@ end: ...@@ -930,7 +930,9 @@ end:
for( i_track = 0; i_track < p_sys->i_tracks; i_track++ ) for( i_track = 0; i_track < p_sys->i_tracks; i_track++ )
{ {
mp4_track_t *tk = &p_sys->track[i_track]; mp4_track_t *tk = &p_sys->track[i_track];
if ( !tk->b_ok || !tk->b_selected ) continue; if ( !tk->b_ok || !tk->b_selected ||
(tk->fmt.i_cat != AUDIO_ES && tk->fmt.i_cat != VIDEO_ES) )
continue;
p_sys->i_pcr = __MIN( MP4_TrackGetDTS( p_demux, tk ), p_sys->i_pcr ); p_sys->i_pcr = __MIN( MP4_TrackGetDTS( p_demux, tk ), p_sys->i_pcr );
p_sys->i_time = p_sys->i_pcr * p_sys->i_timescale / CLOCK_FREQ; p_sys->i_time = p_sys->i_pcr * p_sys->i_timescale / CLOCK_FREQ;
} }
......
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