Commit 105797f1 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: avoid overflow

parent 12bc8295
...@@ -1919,9 +1919,9 @@ static void TrackGetESSampleRate( demux_t *p_demux, ...@@ -1919,9 +1919,9 @@ static void TrackGetESSampleRate( demux_t *p_demux,
if ( p_mdhd ) if ( p_mdhd )
{ {
vlc_ureduce( pi_num, pi_den, vlc_ureduce( pi_num, pi_den,
BOXDATA(p_mdhd)->i_timescale * p_track->i_sample_count, (uint64_t) BOXDATA(p_mdhd)->i_timescale * p_track->i_sample_count,
BOXDATA(p_mdhd)->i_duration, (uint64_t) BOXDATA(p_mdhd)->i_duration,
UINT16_MAX); UINT16_MAX );
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment