Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
1df40150
Unverified
Commit
1df40150
authored
Jun 06, 2016
by
Rodger Combs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/srtdec: fix probing files with negative first timestamps
parent
a590d344
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
srtdec.c
libavformat/srtdec.c
+4
-1
No files found.
libavformat/srtdec.c
View file @
1df40150
...
...
@@ -52,7 +52,10 @@ static int srt_probe(AVProbeData *p)
/* Check if the next line matches a SRT timestamp */
if
(
ff_subtitles_read_line
(
&
tr
,
buf
,
sizeof
(
buf
))
<
0
)
return
0
;
if
(
buf
[
0
]
>=
'0'
&&
buf
[
0
]
<=
'9'
&&
strstr
(
buf
,
" --> "
)
pbuf
=
buf
;
if
(
buf
[
0
]
==
'-'
)
pbuf
++
;
if
(
pbuf
[
0
]
>=
'0'
&&
pbuf
[
0
]
<=
'9'
&&
strstr
(
buf
,
" --> "
)
&&
sscanf
(
buf
,
"%*d:%*d:%*d%*1[,.]%*d --> %*d:%*d:%*d%*1[,.]%d"
,
&
v
)
==
1
)
return
AVPROBE_SCORE_MAX
;
...
...
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