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
1a109fba
Commit
1a109fba
authored
Oct 10, 2019
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hlsenc: move freep segment from sls_flags_filename_process after caller failed
Signed-off-by:
Steven Liu
<
lq@chinaffmpeg.org
>
parent
ebff4bbd
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 @
1a109fba
...
...
@@ -889,7 +889,6 @@ static int sls_flags_filename_process(struct AVFormatContext *s, HLSContext *hls
strlen
(
vs
->
current_segment_final_filename_fmt
))
{
char
*
new_url
=
av_strdup
(
vs
->
current_segment_final_filename_fmt
);
if
(
!
new_url
)
{
av_freep
(
&
en
);
return
AVERROR
(
ENOMEM
);
}
ff_format_set_url
(
vs
->
avf
,
new_url
);
...
...
@@ -901,7 +900,6 @@ static int sls_flags_filename_process(struct AVFormatContext *s, HLSContext *hls
"you can try to remove second_level_segment_size flag
\n
"
,
vs
->
avf
->
url
);
av_freep
(
&
filename
);
av_freep
(
&
en
);
return
AVERROR
(
EINVAL
);
}
ff_format_set_url
(
vs
->
avf
,
filename
);
...
...
@@ -915,7 +913,6 @@ static int sls_flags_filename_process(struct AVFormatContext *s, HLSContext *hls
"you can try to remove second_level_segment_time flag
\n
"
,
vs
->
avf
->
url
);
av_freep
(
&
filename
);
av_freep
(
&
en
);
return
AVERROR
(
EINVAL
);
}
ff_format_set_url
(
vs
->
avf
,
filename
);
...
...
@@ -1037,6 +1034,7 @@ static int hls_append_segment(struct AVFormatContext *s, HLSContext *hls,
en
->
var_stream_idx
=
vs
->
var_stream_idx
;
ret
=
sls_flags_filename_process
(
s
,
hls
,
vs
,
en
,
duration
,
pos
,
size
);
if
(
ret
<
0
)
{
av_freep
(
&
en
);
return
ret
;
}
...
...
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