aboutsummaryrefslogtreecommitdiffhomepage
path: root/sub/vobsub.c
diff options
context:
space:
mode:
Diffstat (limited to 'sub/vobsub.c')
-rw-r--r--sub/vobsub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sub/vobsub.c b/sub/vobsub.c
index bfee3eb98f..2f3ba9e1e1 100644
--- a/sub/vobsub.c
+++ b/sub/vobsub.c
@@ -695,8 +695,8 @@ static int vobsub_parse_id(vobsub_t *vob, const char *line)
static int vobsub_parse_timestamp(vobsub_t *vob, const char *line)
{
int h, m, s, ms;
- off_t filepos;
- if (sscanf(line, " %02d:%02d:%02d:%03d, filepos: %09lx",
+ int64_t filepos;
+ if (sscanf(line, " %02d:%02d:%02d:%03d, filepos: %09"SCNx64,
&h, &m, &s, &ms, &filepos) != 5)
return -1;
return vobsub_add_timestamp(vob, filepos, vob->delay + ms + 1000 * (s + 60 * (m + 60 * h)));