mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-06 09:20:49 +00:00
Hours > 23 in timestamps are OK even though highly unlikely.
This commit is contained in:
parent
8e6eb39a13
commit
a74195e88c
@ -240,8 +240,6 @@ parse_simple_chapters(mm_text_io_c *in,
|
||||
parse_int(line.substr(13, 2), minute);
|
||||
parse_int(line.substr(16, 2), second);
|
||||
parse_int(line.substr(19, 3), msecs);
|
||||
if (hour > 23)
|
||||
chapter_error("Invalid hour: %d", hour);
|
||||
if (minute > 59)
|
||||
chapter_error("Invalid minute: %d", minute);
|
||||
if (second > 59)
|
||||
|
@ -1614,8 +1614,6 @@ parse_timecode(const char *src,
|
||||
return set_tcp_error("Invalid format");
|
||||
if (sscanf(src, "%02d:%02d:%02d", &h, &m, &s) != 3)
|
||||
return set_tcp_error("Invalid format (non-numbers encountered)");
|
||||
if (h > 23)
|
||||
return set_tcp_error("Invalid hour");
|
||||
if (m > 59)
|
||||
return set_tcp_error("Invalid minute");
|
||||
if (s > 59)
|
||||
|
Loading…
Reference in New Issue
Block a user