Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6b45f05e
Commit
6b45f05e
authored
Dec 03, 2013
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parseutils: fix discarding const attribute warning
parent
35686a28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
parseutils.c
libavutil/parseutils.c
+4
-2
No files found.
libavutil/parseutils.c
View file @
6b45f05e
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment