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
a9b2a511
Commit
a9b2a511
authored
Jun 12, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv_opt: Check localtime() return value
Reported-By: infer
parent
8a78ae2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
avconv_opt.c
avconv_opt.c
+5
-0
No files found.
avconv_opt.c
View file @
a9b2a511
...
...
@@ -1899,6 +1899,11 @@ static int opt_vstats(void *optctx, const char *opt, const char *arg)
time_t
today2
=
time
(
NULL
);
struct
tm
*
today
=
localtime
(
&
today2
);
if
(
!
today
)
{
// maybe tomorrow
av_log
(
NULL
,
AV_LOG_FATAL
,
"Unable to get current time.
\n
"
);
exit_program
(
1
);
}
snprintf
(
filename
,
sizeof
(
filename
),
"vstats_%02d%02d%02d.log"
,
today
->
tm_hour
,
today
->
tm_min
,
today
->
tm_sec
);
return
opt_vstats_file
(
NULL
,
opt
,
filename
);
...
...
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