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
8a570321
Commit
8a570321
authored
Mar 09, 2012
by
bbcallen
Committed by
Hugo Beauzée-Luyssen
Mar 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hls: m3u8 parser should pass 0xD at line end
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
411132d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+14
-8
No files found.
modules/stream_filter/httplive.c
View file @
8a570321
...
@@ -1808,22 +1808,28 @@ static char *ReadLine(uint8_t *buffer, uint8_t **pos, const size_t len)
...
@@ -1808,22 +1808,28 @@ static char *ReadLine(uint8_t *buffer, uint8_t **pos, const size_t len)
while
(
p
<
end
)
while
(
p
<
end
)
{
{
if
((
*
p
==
'\n'
)
||
(
*
p
==
'\0'
))
if
((
*
p
==
'\
r'
)
||
(
*
p
==
'\
n'
)
||
(
*
p
==
'\0'
))
break
;
break
;
p
++
;
p
++
;
}
}
/* copy line excluding \n or \0 */
/* copy line excluding \
r \
n or \0 */
line
=
strndup
((
char
*
)
begin
,
p
-
begin
);
line
=
strndup
((
char
*
)
begin
,
p
-
begin
);
while
((
*
p
==
'\r'
)
||
(
*
p
==
'\n'
)
||
(
*
p
==
'\0'
))
{
if
(
*
p
==
'\0'
)
if
(
*
p
==
'\0'
)
{
*
pos
=
end
;
*
pos
=
end
;
break
;
}
else
else
{
{
/* next pass start after
\n */
/* next pass start after \r and
\n */
p
++
;
p
++
;
*
pos
=
p
;
*
pos
=
p
;
}
}
}
return
line
;
return
line
;
}
}
...
...
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