diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-04-20 12:18:38 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-04-20 18:43:33 +0100 |
commit | 98cab39798612dcaea4f9b6d1e7974bc60d84e13 (patch) | |
tree | 535637696dc5256ceb9fa90e2ab881db99104200 /libavformat/utils.c | |
parent | 86e1a35802df42f51337d3fed8d5d99d0898c8bf (diff) | |
download | ffmpeg-98cab39798612dcaea4f9b6d1e7974bc60d84e13.tar.gz |
lavf: Fix variables constness in ff_iso8601_to_unix_time()
warning: assigning to
'char *' from 'const char *' discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index b4ef77d393..18cd0d72d7 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2903,7 +2903,7 @@ int ff_find_stream_index(AVFormatContext *s, int id) int64_t ff_iso8601_to_unix_time(const char *datestr) { struct tm time1 = { 0 }, time2 = { 0 }; - char *ret1, *ret2; + const char *ret1, *ret2; ret1 = av_small_strptime(datestr, "%Y - %m - %d %T", &time1); ret2 = av_small_strptime(datestr, "%Y - %m - %dT%T", &time2); if (ret2 && !ret1) |