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
2b15d436
Commit
2b15d436
authored
Jun 27, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/sccdec: display last caption even when there is no empty last line
parent
025fcee6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
sccdec.c
libavformat/sccdec.c
+5
-0
No files found.
libavformat/sccdec.c
View file @
2b15d436
...
...
@@ -110,6 +110,7 @@ static int scc_read_header(AVFormatContext *s)
ts_end
=
(
hh2
*
3600LL
+
mm2
*
60LL
+
ss2
)
*
1000LL
+
fs2
*
33
;
count
++
;
try_again:
lline
=
(
char
*
)
&
line
;
lline
+=
12
;
...
...
@@ -138,9 +139,13 @@ static int scc_read_header(AVFormatContext *s)
sub
->
pts
=
ts_start
;
sub
->
duration
=
FFMAX
(
1200
,
ts_end
-
ts_start
);
memmove
(
line
,
line2
,
sizeof
(
line
));
line2
[
0
]
=
0
;
FFSWAP
(
ptrdiff_t
,
len
,
len2
);
}
if
(
line
[
0
])
goto
try_again
;
ff_subtitles_queue_finalize
(
s
,
&
scc
->
q
);
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