summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libass/ass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass.c b/libass/ass.c
index 094cc92..1a2a364 100644
--- a/libass/ass.c
+++ b/libass/ass.c
@@ -224,9 +224,9 @@ static void set_default_style(ASS_Style *style)
static long long string2timecode(ASS_Library *library, char *p)
{
- unsigned h, m, s, ms;
+ int h, m, s, ms;
long long tm;
- int res = sscanf(p, "%u:%u:%u.%u", &h, &m, &s, &ms);
+ int res = sscanf(p, "%d:%d:%d.%d", &h, &m, &s, &ms);
if (res < 4) {
ass_msg(library, MSGL_WARN, "Bad timestamp");
return 0;