vlc | branch: master | Steve Lhomme <[email protected]> | Fri Jun 8 15:19:10 2018 +0200| [878df3f879ad8c87a1a5b35dd904bf7d52d31a34] | committer: Steve Lhomme
demux:mp4: simplify value check No need to due the subtraction, the value is overwritten right after. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=878df3f879ad8c87a1a5b35dd904bf7d52d31a34 --- modules/demux/mp4/mp4.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c index 527a80e88c..51dd4bd5ce 100644 --- a/modules/demux/mp4/mp4.c +++ b/modules/demux/mp4/mp4.c @@ -3088,8 +3088,7 @@ static int TrackTimeToSampleChunk( demux_t *p_demux, mp4_track_t *p_track, /* now calculate i_start for this elst */ /* offset */ - i_start -= MP4_rescale( p_track->i_elst_time, p_sys->i_timescale, CLOCK_FREQ ); - if( i_start < 0 ) + if( i_start < MP4_rescale( p_track->i_elst_time, p_sys->i_timescale, CLOCK_FREQ ) ) { *pi_chunk = 0; *pi_sample= 0; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
