projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31b61f3
)
flvdemux: relax creation time parsing
author
Tim-Philipp Müller
<tim@centricular.com>
Wed, 21 Oct 2015 10:53:09 +0000
(11:53 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Wed, 21 Oct 2015 10:53:09 +0000
(11:53 +0100)
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.
gst/flv/gstflvdemux.c
patch
|
blob
|
history
diff --git
a/gst/flv/gstflvdemux.c
b/gst/flv/gstflvdemux.c
index
079ee7d
..
19765f7
100644
(file)
--- a/
gst/flv/gstflvdemux.c
+++ b/
gst/flv/gstflvdemux.c
@@
-295,7
+295,7
@@
parse_flv_demux_parse_date_string (const gchar * s)
/* time */
hh = mm = ss = 0;
- if (sscanf (tokens[3], "%
02d:%02d:%02
d", &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;