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
71af7377
Commit
71af7377
authored
Mar 25, 2011
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
srtdec: make sure we don't write past the end of buffer
Signed-off-by:
Aurelien Jacobs
<
aurel@gnuage.org
>
parent
0cd13834
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
srtdec.c
libavcodec/srtdec.c
+1
-1
No files found.
libavcodec/srtdec.c
View file @
71af7377
...
...
@@ -94,7 +94,7 @@ static const char *srt_to_ass(AVCodecContext *avctx, char *out, char *out_end,
break
;
case
'<'
:
tag_close
=
in
[
1
]
==
'/'
;
if
(
sscanf
(
in
+
tag_close
+
1
,
"%12
8
[^>]>%n%c"
,
buffer
,
&
len
,
&
c
)
>=
2
)
{
if
(
sscanf
(
in
+
tag_close
+
1
,
"%12
7
[^>]>%n%c"
,
buffer
,
&
len
,
&
c
)
>=
2
)
{
if
((
param
=
strchr
(
buffer
,
' '
)))
*
param
++
=
0
;
if
((
!
tag_close
&&
sptr
<
FF_ARRAY_ELEMS
(
stack
))
||
...
...
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