Skip to content

Commit

Permalink
demux: mp4: ignore SPU when setting PCR
Browse files Browse the repository at this point in the history
otherwise breaks PCR update on seek
  • Loading branch information
fcartegnie committed Jun 11, 2014
1 parent afc9003 commit 3cebf08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/demux/mp4/mp4.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,9 @@ static int Demux( demux_t *p_demux )
for( i_track = 0; i_track < p_sys->i_tracks; 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_time = p_sys->i_pcr * p_sys->i_timescale / CLOCK_FREQ;
}
Expand Down

0 comments on commit 3cebf08

Please sign in to comment.