[vlc-devel] [PATCH] demux: mp4: extract framerate from mp4 files with DASH encapsulation, using frame duration stored in elst 'i_media_time'

Francois Cartegnie fcvlcdev at free.fr
Tue Oct 6 17:54:39 CEST 2015


Le 06/10/2015 14:57, Emeric Grange a écrit :

> +            if( p_track->p_elst && p_track->BOXDATA(p_elst)->i_entry_count > 0 )
> +            {
> +                vlc_ureduce( pi_num, pi_den,
> +                             (uint64_t) BOXDATA(p_mdhd)->i_timescale,
> +                             (uint64_t) p_track->BOXDATA(p_elst)->i_media_time[p_track->i_elst],
> +                             UINT16_MAX );

Well, changing my mind.
What does guarantee that timescale has always framerate relationship ?

Francois



More information about the vlc-devel mailing list