[vlc-commits] demux: mp4: pick pcr from all tracks in leaf mode
Francois Cartegnie
git at videolan.org
Fri Jan 20 21:30:05 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 18 16:16:03 2017 +0100| [2578fb1963a4430058ea3f769b8c85a57fe63add] | committer: Francois Cartegnie
demux: mp4: pick pcr from all tracks in leaf mode
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2578fb1963a4430058ea3f769b8c85a57fe63add
---
modules/demux/mp4/mp4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index e23346d..5cf1c4f 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -5308,7 +5308,7 @@ static int DemuxAsLeaf( demux_t *p_demux )
for( unsigned int i_track = 0; i_track < p_sys->i_tracks; i_track++ )
{
const mp4_track_t *p_track = &p_sys->track[i_track];
- if( !p_track->b_selected || ( p_track->fmt.i_cat != VIDEO_ES && p_track->fmt.i_cat != AUDIO_ES ) )
+ if( !p_track->b_selected || !p_track->b_ok )
continue;
i_lowest_time = __MIN( i_lowest_time, MP4_rescale( p_track->i_time, p_track->i_timescale, p_sys->i_timescale ) );
More information about the vlc-commits
mailing list