[vlc-commits] demux: mp4: ignore indirect index references for seek

Francois Cartegnie git at videolan.org
Tue Apr 30 14:28:04 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 26 09:57:04 2019 +0200| [4c43606d400c3e23f76b63ea40a2853bb1cbfc06] | committer: Francois Cartegnie

demux: mp4: ignore indirect index references for seek

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c43606d400c3e23f76b63ea40a2853bb1cbfc06
---

 modules/demux/mp4/mp4.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 6fa1502051..71f7bcbf63 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -4831,6 +4831,8 @@ static int FragGetMoofBySidxIndex( demux_t *p_demux, vlc_tick_t target_time,
     stime_t i_time = 0;
     for( uint16_t i=0; i<p_data->i_reference_count; i++ )
     {
+        if(p_data->p_items[i].b_reference_type != 0)
+            continue;
         if( i_time + p_data->p_items[i].i_subsegment_duration > i_target_time )
         {
             *pi_sampletime = MP4_rescale_mtime( i_time, p_data->i_timescale );



More information about the vlc-commits mailing list