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
851ace79
Commit
851ace79
authored
Oct 24, 2014
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtv: Avoid needlessly calling gmtime twice with the same argument
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
50dbe6b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wtv.c
libavformat/wtv.c
+3
-3
No files found.
libavformat/wtv.c
View file @
851ace79
...
...
@@ -430,7 +430,7 @@ static void filetime_to_iso8601(char *buf, int buf_size, int64_t value)
time_t
t
=
(
value
/
10000000LL
)
-
11644473600LL
;
struct
tm
*
tm
=
gmtime
(
&
t
);
if
(
tm
)
strftime
(
buf
,
buf_size
,
"%Y-%m-%d %H:%M:%S"
,
gmtime
(
&
t
)
);
strftime
(
buf
,
buf_size
,
"%Y-%m-%d %H:%M:%S"
,
tm
);
else
buf
[
0
]
=
'\0'
;
}
...
...
@@ -443,7 +443,7 @@ static void crazytime_to_iso8601(char *buf, int buf_size, int64_t value)
time_t
t
=
(
value
/
10000000LL
)
-
719162LL
*
86400LL
;
struct
tm
*
tm
=
gmtime
(
&
t
);
if
(
tm
)
strftime
(
buf
,
buf_size
,
"%Y-%m-%d %H:%M:%S"
,
gmtime
(
&
t
)
);
strftime
(
buf
,
buf_size
,
"%Y-%m-%d %H:%M:%S"
,
tm
);
else
buf
[
0
]
=
'\0'
;
}
...
...
@@ -456,7 +456,7 @@ static void oledate_to_iso8601(char *buf, int buf_size, int64_t value)
time_t
t
=
631112400LL
+
86400
*
av_int2double
(
value
);
struct
tm
*
tm
=
gmtime
(
&
t
);
if
(
tm
)
strftime
(
buf
,
buf_size
,
"%Y-%m-%d %H:%M:%S"
,
gmtime
(
&
t
)
);
strftime
(
buf
,
buf_size
,
"%Y-%m-%d %H:%M:%S"
,
tm
);
else
buf
[
0
]
=
'\0'
;
}
...
...
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