Commit 256b42b9 authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: mp4: change assertions to warnings

parent b6704005
...@@ -4430,8 +4430,11 @@ static int LeafParseTRUN( demux_t *p_demux, mp4_track_t *p_track, ...@@ -4430,8 +4430,11 @@ static int LeafParseTRUN( demux_t *p_demux, mp4_track_t *p_track,
else else
len = i_defaultsize; len = i_defaultsize;
assert( dur ); /* dur, dur ! */ if(!dur)
assert( len ); msg_Warn(p_demux, "Zero duration sample in trun.");
if(!len)
msg_Warn(p_demux, "Zero length sample in trun.");
if ( chunk_size + len > *pi_mdatlen ) if ( chunk_size + len > *pi_mdatlen )
{ {
......
Supports Markdown
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