Browse Source

demux: mp4: fix lack of tfdt fallback

refs #26341
pull/134/head
Francois Cartegnie 4 years ago
committed by Jean-Baptiste Kempf
parent
commit
dfe420ab66
  1. 11
      modules/demux/mp4/mp4.c

11
modules/demux/mp4/mp4.c

@ -4865,12 +4865,13 @@ static int FragCreateTrunIndex( demux_t *p_demux, MP4_Box_t *p_moof,
}
/* Use global sidx moof time, in case moof does not carry tfdt */
if( !b_has_base_media_decode_time && i_moof_time != INVALID_SEGMENT_TIME )
i_traf_start_time = MP4_rescale( i_moof_time, p_sys->i_timescale, p_track->i_timescale );
/* That should not happen */
if( !b_has_base_media_decode_time )
i_traf_start_time = MP4_rescale_qtime( p_sys->i_nztime, p_track->i_timescale );
{
if( i_moof_time != INVALID_SEGMENT_TIME )
i_traf_start_time = MP4_rescale( i_moof_time, p_sys->i_timescale, p_track->i_timescale );
else /* That should not happen */
i_traf_start_time = MP4_rescale_qtime( p_sys->i_nztime, p_track->i_timescale );
}
}
/* Parse TRUN data */

Loading…
Cancel
Save