[vlc-commits] mp4: fix comparison signedness
Rémi Denis-Courmont
git at videolan.org
Sun Mar 3 16:52:36 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 3 17:43:37 2019 +0200| [5f00c7e276e2b83b9c27290444d493bf631b52b6] | committer: Rémi Denis-Courmont
mp4: fix comparison signedness
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f00c7e276e2b83b9c27290444d493bf631b52b6
---
modules/demux/mp4/mp4.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 200251cfbc..7b8cfb67f7 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -4031,7 +4031,8 @@ static void MP4_TrackSetELST( demux_t *p_demux, mp4_track_t *tk,
{
uint64_t i_dur = elst->i_segment_duration[tk->i_elst];
- if( tk->i_elst_time <= i_mvt && i_mvt < tk->i_elst_time + i_dur )
+ if( tk->i_elst_time <= i_mvt
+ && i_mvt < (int64_t)(tk->i_elst_time + i_dur) )
{
break;
}
More information about the vlc-commits
mailing list