[vlc-commits] demux: mp4: change assertions to warnings
Francois Cartegnie
git at videolan.org
Mon Jan 12 20:22:07 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jan 8 21:26:50 2015 +0100| [256b42b910d17cff326603b22f84a6d466e97934] | committer: Francois Cartegnie
demux: mp4: change assertions to warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=256b42b910d17cff326603b22f84a6d466e97934
---
modules/demux/mp4/mp4.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 47e1345..cea6d33 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -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 )
{
More information about the vlc-commits
mailing list