OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86e1a35
)
lavf: Fix variables constness in ff_iso8601_to_unix_time()
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Mon, 20 Apr 2015 11:18:38 +0000
(12:18 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Mon, 20 Apr 2015 17:43:33 +0000
(18:43 +0100)
warning: assigning to
'char *' from 'const char *' discards qualifiers
[-Wincompatible-pointer-types-discards-qualifiers]
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
b4ef77d
..
18cd0d7
100644
(file)
--- 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;
+ c
onst c
har *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)