diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2013-12-03 12:57:51 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2013-12-12 16:10:14 +0100 |
commit | 6b45f05ef5b241fd1513702119af9c30056a0ac5 (patch) | |
tree | c81f3231726d6119f1ee302c4f427eded9630e13 /libavutil | |
parent | 35686a289fcd2f9d7502e45002f168a753b11f9c (diff) | |
download | ffmpeg-6b45f05ef5b241fd1513702119af9c30056a0ac5.tar.gz |
parseutils: fix discarding const attribute warning
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/parseutils.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c index 0e3fd9eab5..414cd47e66 100644 --- a/libavutil/parseutils.c +++ b/libavutil/parseutils.c @@ -555,15 +555,17 @@ int av_parse_time(int64_t *timeval, const char *timestr, int duration) /* parse timestr as HH:MM:SS */ q = small_strptime(p, time_fmt[0], &dt); if (!q) { + char *o; /* parse timestr as S+ */ - dt.tm_sec = strtol(p, (char **)&q, 10); - if (q == p) { + dt.tm_sec = strtol(p, &o, 10); + if (o == p) { /* the parsing didn't succeed */ *timeval = INT64_MIN; return AVERROR(EINVAL); } dt.tm_min = 0; dt.tm_hour = 0; + q = o; } } |