[vlc-commits] smf: offset is always positive, fix warnings

Rémi Denis-Courmont git at videolan.org
Fri Jul 7 22:43:18 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jul  7 23:42:57 2017 +0300| [5fde8e85732ebe80a9ae2971484edb32ce1e9a95] | committer: Rémi Denis-Courmont

smf: offset is always positive, fix warnings

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5fde8e85732ebe80a9ae2971484edb32ce1e9a95
---

 modules/demux/smf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/smf.c b/modules/demux/smf.c
index e52225be76..1c1c8a61cd 100644
--- a/modules/demux/smf.c
+++ b/modules/demux/smf.c
@@ -59,7 +59,7 @@ static int32_t ReadVarInt (stream_t *s)
 typedef struct smf_track_t
 {
     uint64_t next;   /*< Time of next message (in term of pulses) */
-    int64_t  start;  /*< Start offset in the file */
+    uint64_t start;  /*< Start offset in the file */
     uint32_t length; /*< Bytes length */
     uint32_t offset; /*< Read offset relative to the start offset */
     uint8_t  running_event; /*< Running (previous) event */



More information about the vlc-commits mailing list