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
3a54c221
Commit
3a54c221
authored
Sep 08, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/srtdec: fix potential overread.
parent
860a0810
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
srtdec.c
libavcodec/srtdec.c
+2
-1
No files found.
libavcodec/srtdec.c
View file @
3a54c221
...
...
@@ -204,7 +204,8 @@ static const char *read_ts(const char *buf, int *ts_start, int *ts_end,
"%*[ ]X1:%u X2:%u Y1:%u Y2:%u"
,
&
hs
,
&
ms
,
&
ss
,
ts_start
,
&
he
,
&
me
,
&
se
,
ts_end
,
x1
,
x2
,
y1
,
y2
);
buf
+=
strcspn
(
buf
,
"
\n
"
)
+
1
;
buf
+=
strcspn
(
buf
,
"
\n
"
);
buf
+=
!!*
buf
;
if
(
c
>=
8
)
{
*
ts_start
=
100
*
(
ss
+
60
*
(
ms
+
60
*
hs
))
+
*
ts_start
/
10
;
*
ts_end
=
100
*
(
se
+
60
*
(
me
+
60
*
he
))
+
*
ts_end
/
10
;
...
...
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