mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
flvdemux: relax creation time parsing
Parse wrong timestamps like we used to write as well, e.g. 10:9:42, and the hour might be without a leading zero in any case.
This commit is contained in:
parent
31b61f3add
commit
ff422c112f
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ parse_flv_demux_parse_date_string (const gchar * s)
|
|||
|
||||
/* time */
|
||||
hh = mm = ss = 0;
|
||||
if (sscanf (tokens[3], "%02d:%02d:%02d", &hh, &mm, &ss) < 2)
|
||||
if (sscanf (tokens[3], "%d:%d:%d", &hh, &mm, &ss) < 2)
|
||||
goto out;
|
||||
if (hh >= 0 && hh < 24 && mm >= 0 && mm < 60 && ss >= 0 && ss < 60) {
|
||||
hour = hh;
|
||||
|
|
Loading…
Reference in a new issue