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
6347146e
Commit
6347146e
authored
Apr 25, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/subtitles: ignore extra '\r' at line endings
parent
2e254bb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
subtitles.c
libavformat/subtitles.c
+1
-1
subtitles.h
libavformat/subtitles.h
+1
-1
No files found.
libavformat/subtitles.c
View file @
6347146e
...
...
@@ -417,7 +417,7 @@ ptrdiff_t ff_subtitles_read_line(FFTextReader *tr, char *buf, size_t size)
buf
[
cur
++
]
=
c
;
buf
[
cur
]
=
'\0'
;
}
if
(
ff_text_peek_r8
(
tr
)
==
'\r'
)
while
(
ff_text_peek_r8
(
tr
)
==
'\r'
)
ff_text_r8
(
tr
);
if
(
ff_text_peek_r8
(
tr
)
==
'\n'
)
ff_text_r8
(
tr
);
...
...
libavformat/subtitles.h
View file @
6347146e
...
...
@@ -188,7 +188,7 @@ static av_always_inline int ff_subtitles_next_line(const char *ptr)
{
int
n
=
strcspn
(
ptr
,
"
\r\n
"
);
ptr
+=
n
;
if
(
*
ptr
==
'\r'
)
{
while
(
*
ptr
==
'\r'
)
{
ptr
++
;
n
++
;
}
...
...
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