Commit a435a033 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '6b45f05e'

* commit '6b45f05e':
  parseutils: fix discarding const attribute warning

Conflicts:
	libavutil/parseutils.c

See: fe87b2e7Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d780fdb9 6b45f05e
......@@ -613,12 +613,14 @@ int av_parse_time(int64_t *timeval, const char *timestr, int duration)
dt.tm_hour = 0;
}
if (!q) {
char *o;
/* parse timestr as S+ */
dt.tm_sec = strtol(p, (void *)&q, 10);
if (q == p) /* the parsing didn't succeed */
dt.tm_sec = strtol(p, &o, 10);
if (o == p) /* the parsing didn't succeed */
return AVERROR(EINVAL);
dt.tm_min = 0;
dt.tm_hour = 0;
q = o;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment