Hours > 23 in timestamps are OK even though highly unlikely.

This commit is contained in:
Moritz Bunkus 2005-01-05 19:09:08 +00:00
parent 8e6eb39a13
commit a74195e88c
2 changed files with 0 additions and 4 deletions

View File

@ -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)

View File

@ -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)