Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
6ae18228
Commit
6ae18228
authored
Dec 15, 2017
by
Karthick J
Committed by
Steven Liu
Dec 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hlsenc: Handle NULL input in IO open and close utility functions
Signed-off-by:
Steven Liu
<
lq@chinaffmpeg.org
>
parent
deceb7d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
hlsenc.c
libavformat/hlsenc.c
+2
-2
No files found.
libavformat/hlsenc.c
View file @
6ae18228
...
...
@@ -246,7 +246,7 @@ static int is_http_proto(char *filename) {
static
int
hlsenc_io_open
(
AVFormatContext
*
s
,
AVIOContext
**
pb
,
char
*
filename
,
AVDictionary
**
options
)
{
HLSContext
*
hls
=
s
->
priv_data
;
int
http_base_proto
=
is_http_proto
(
filename
)
;
int
http_base_proto
=
filename
?
is_http_proto
(
filename
)
:
0
;
int
err
=
AVERROR_MUXER_NOT_FOUND
;
if
(
!*
pb
||
!
http_base_proto
||
!
hls
->
http_persistent
)
{
err
=
s
->
io_open
(
s
,
pb
,
filename
,
AVIO_FLAG_WRITE
,
options
);
...
...
@@ -262,7 +262,7 @@ static int hlsenc_io_open(AVFormatContext *s, AVIOContext **pb, char *filename,
static
void
hlsenc_io_close
(
AVFormatContext
*
s
,
AVIOContext
**
pb
,
char
*
filename
)
{
HLSContext
*
hls
=
s
->
priv_data
;
int
http_base_proto
=
is_http_proto
(
filename
)
;
int
http_base_proto
=
filename
?
is_http_proto
(
filename
)
:
0
;
if
(
!
http_base_proto
||
!
hls
->
http_persistent
||
hls
->
key_info_file
||
hls
->
encrypt
)
{
ff_format_io_close
(
s
,
pb
);
...
...
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