Commit 393a9df0 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

demux: mp4: fix divbyzero with broken audio stsd

(cherry picked from commit 9e2ed89062e3d47b66fa7f9611fce20d5deda2a6)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 58db383b
......@@ -3511,7 +3511,8 @@ static uint64_t MP4_TrackGetPos( mp4_track_t *p_track )
p_track->p_sample->data.p_sample_soun;
if( p_track->fmt.i_cat != AUDIO_ES || p_soun->i_qt_version == 0 ||
p_track->fmt.audio.i_blockalign <= 1 )
p_track->fmt.audio.i_blockalign <= 1 ||
p_soun->i_sample_per_packet * p_soun->i_bytes_per_frame == 0 )
{
i_pos += ( p_track->i_sample -
p_track->chunk[p_track->i_chunk].i_sample_first ) *
......
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