Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
399c991f
Commit
399c991f
authored
Apr 25, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HLS demux: fix crash on invalid playlist
Close #8498
parent
f24ef231
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+22
-22
No files found.
modules/stream_filter/httplive.c
View file @
399c991f
...
...
@@ -1000,30 +1000,30 @@ static int parse_M3U8(stream_t *s, vlc_array_t *streams, uint8_t *buffer, const
free
(
uri
);
/* Download playlist file from server */
uint8_t
*
buf
=
NULL
;
ssize_t
len
=
read_M3U8_from_url
(
s
,
hls
->
url
,
&
buf
);
if
(
len
<
0
)
{
msg_Warn
(
s
,
"failed to read %s, continue for other streams"
,
hls
->
url
);
failed_to_download_stream_m3u8
=
true
;
/* remove stream just added */
if
(
new_stream_added
)
vlc_array_remove
(
streams
,
vlc_array_count
(
streams
)
-
1
);
/* ignore download error, so we have chance to try other streams */
err
=
VLC_SUCCESS
;
}
else
{
/* Parse HLS m3u8 content. */
err
=
parse_M3U8
(
s
,
streams
,
buf
,
len
);
free
(
buf
);
}
if
(
hls
)
{
/* Download playlist file from server */
uint8_t
*
buf
=
NULL
;
ssize_t
len
=
read_M3U8_from_url
(
s
,
hls
->
url
,
&
buf
);
if
(
len
<
0
)
{
msg_Warn
(
s
,
"failed to read %s, continue for other streams"
,
hls
->
url
);
failed_to_download_stream_m3u8
=
true
;
/* remove stream just added */
if
(
new_stream_added
)
vlc_array_remove
(
streams
,
vlc_array_count
(
streams
)
-
1
);
/* ignore download error, so we have chance to try other streams */
err
=
VLC_SUCCESS
;
}
else
{
/* Parse HLS m3u8 content. */
err
=
parse_M3U8
(
s
,
streams
,
buf
,
len
);
free
(
buf
);
}
hls
->
version
=
version
;
if
(
!
p_sys
->
b_live
)
hls
->
size
=
hls_GetStreamSize
(
hls
);
/* Stream size (approximate) */
...
...
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