[vlc-commits] demux: mp4: check GetPTSDelta result (cid #1251043)
Francois Cartegnie
git at videolan.org
Mon Nov 10 22:10:24 CET 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 10 22:03:36 2014 +0100| [f9cd83cda1a629ef78608b196cb917ef4320a1d6] | committer: Francois Cartegnie
demux: mp4: check GetPTSDelta result (cid #1251043)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f9cd83cda1a629ef78608b196cb917ef4320a1d6
---
modules/demux/mp4/mp4.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 06bdca7..b8b0dc9 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1735,8 +1735,9 @@ static void LoadChapterApple( demux_t *p_demux, mp4_track_t *tk )
for( tk->i_sample = 0; tk->i_sample < tk->i_sample_count; tk->i_sample++ )
{
const int64_t i_dts = MP4_TrackGetDTS( p_demux, tk );
- int64_t i_pts_delta = 0;
- MP4_TrackGetPTSDelta( p_demux, tk, &i_pts_delta );
+ int64_t i_pts_delta;
+ if ( !MP4_TrackGetPTSDelta( p_demux, tk, &i_pts_delta ) )
+ i_pts_delta = 0;
uint32_t i_nb_samples = 0;
const uint32_t i_size = MP4_TrackGetReadSize( tk, &i_nb_samples );
More information about the vlc-commits
mailing list