Commit 256b42b9 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: change assertions to warnings

parent b6704005
......@@ -4430,8 +4430,11 @@ static int LeafParseTRUN( demux_t *p_demux, mp4_track_t *p_track,
else
len = i_defaultsize;
assert( dur ); /* dur, dur ! */
assert( len );
if(!dur)
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 )
{
......
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