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
d34d3304
Commit
d34d3304
authored
Jun 24, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/wavenc: do not hardcode array size in memset and other functions
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2e1e10a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wavenc.c
libavformat/wavenc.c
+3
-3
No files found.
libavformat/wavenc.c
View file @
d34d3304
...
...
@@ -270,13 +270,13 @@ static void peak_write_chunk(AVFormatContext *s)
if
(
wav
->
peak_block_pos
)
peak_write_frame
(
s
);
memset
(
timestamp
,
0
,
28
);
memset
(
timestamp
,
0
,
sizeof
(
timestamp
)
);
if
(
!
(
s
->
flags
&
AVFMT_FLAG_BITEXACT
))
{
av_log
(
s
,
AV_LOG_INFO
,
"Writing local time and date to Peak Envelope Chunk
\n
"
);
now0
=
av_gettime
();
now_secs
=
now0
/
1000000
;
strftime
(
timestamp
,
28
,
"%Y:%m:%d:%H:%M:%S:"
,
localtime
(
&
now_secs
));
av_strlcatf
(
timestamp
,
28
,
"%03d"
,
(
int
)((
now0
/
1000
)
%
1000
));
strftime
(
timestamp
,
sizeof
(
timestamp
)
,
"%Y:%m:%d:%H:%M:%S:"
,
localtime
(
&
now_secs
));
av_strlcatf
(
timestamp
,
sizeof
(
timestamp
)
,
"%03d"
,
(
int
)((
now0
/
1000
)
%
1000
));
}
avio_wl32
(
pb
,
1
);
/* version */
...
...
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