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
31b351ea
Commit
31b351ea
authored
Dec 04, 2017
by
Robert Nagy
Committed by
Steven Liu
Dec 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hlsenc: fix baseurl missing last char
Reviewed-by:
Steven Liu
<
lq@onvideo.cn
>
parent
894f1c39
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
hlsenc.c
libavformat/hlsenc.c
+1
-4
No files found.
libavformat/hlsenc.c
View file @
31b351ea
...
@@ -1921,14 +1921,11 @@ static int hls_write_header(AVFormatContext *s)
...
@@ -1921,14 +1921,11 @@ static int hls_write_header(AVFormatContext *s)
}
}
if
(
hls
->
baseurl
)
{
if
(
hls
->
baseurl
)
{
int
baseurl_len
;
vs
->
baseurl
=
av_strdup
(
hls
->
baseurl
);
baseurl_len
=
strlen
(
hls
->
baseurl
);
vs
->
baseurl
=
av_malloc
(
baseurl_len
);
if
(
!
vs
->
baseurl
)
{
if
(
!
vs
->
baseurl
)
{
ret
=
AVERROR
(
ENOMEM
);
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
goto
fail
;
}
}
av_strlcpy
(
vs
->
baseurl
,
hls
->
baseurl
,
baseurl_len
);
}
}
if
((
hls
->
flags
&
HLS_SINGLE_FILE
)
&&
(
hls
->
segment_type
==
SEGMENT_TYPE_FMP4
))
{
if
((
hls
->
flags
&
HLS_SINGLE_FILE
)
&&
(
hls
->
segment_type
==
SEGMENT_TYPE_FMP4
))
{
...
...
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