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
99ebb033
Commit
99ebb033
authored
Mar 26, 2020
by
Limin Wang
Committed by
Steven Liu
Apr 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hlsenc: use av_asprintf()
Signed-off-by:
Limin Wang
<
lance.lmwang@gmail.com
>
parent
d7780636
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
hlsenc.c
libavformat/hlsenc.c
+1
-3
No files found.
libavformat/hlsenc.c
View file @
99ebb033
...
...
@@ -2942,13 +2942,11 @@ static int hls_init(AVFormatContext *s)
if
(
ret
<
0
)
goto
fail
;
}
else
{
vs
->
vtt_m3u8_name
=
av_
malloc
(
vtt_basename_siz
e
);
vs
->
vtt_m3u8_name
=
av_
asprintf
(
"%s_vtt.m3u8"
,
vs
->
vtt_basenam
e
);
if
(
!
vs
->
vtt_m3u8_name
)
{
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
strcpy
(
vs
->
vtt_m3u8_name
,
vs
->
vtt_basename
);
av_strlcat
(
vs
->
vtt_m3u8_name
,
"_vtt.m3u8"
,
vtt_basename_size
);
}
av_strlcat
(
vs
->
vtt_basename
,
vtt_pattern
,
vtt_basename_size
);
}
...
...
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