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
9da7536c
Commit
9da7536c
authored
Dec 23, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/sccdec: fix timestamp of last subtitle
Fixes -c:s copy case.
parent
547b0c61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
sccdec.c
libavformat/sccdec.c
+4
-2
No files found.
libavformat/sccdec.c
View file @
9da7536c
...
...
@@ -63,6 +63,7 @@ static int scc_read_header(AVFormatContext *s)
SCCContext
*
scc
=
s
->
priv_data
;
AVStream
*
st
=
avformat_new_stream
(
s
,
NULL
);
char
line
[
4096
],
line2
[
4096
];
int64_t
ts_start
,
ts_end
;
int
count
=
0
,
ret
=
0
;
ptrdiff_t
len2
,
len
;
uint8_t
out
[
4096
];
...
...
@@ -81,7 +82,6 @@ static int scc_read_header(AVFormatContext *s)
char
*
saveptr
=
NULL
,
*
lline
;
int
hh1
,
mm1
,
ss1
,
fs1
,
i
;
int
hh2
,
mm2
,
ss2
,
fs2
;
int64_t
ts_start
,
ts_end
;
AVPacket
*
sub
;
if
(
count
==
0
)
{
...
...
@@ -142,8 +142,10 @@ try_again:
line2
[
0
]
=
0
;
}
if
(
line
[
0
])
if
(
line
[
0
])
{
ts_start
=
ts_end
;
goto
try_again
;
}
ff_subtitles_queue_finalize
(
s
,
&
scc
->
q
);
...
...
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