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
ced0307e
Commit
ced0307e
authored
May 28, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tta: make probing more robust
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
35e683e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tta.c
libavformat/tta.c
+5
-3
No files found.
libavformat/tta.c
View file @
ced0307e
...
...
@@ -33,9 +33,11 @@ typedef struct {
static
int
tta_probe
(
AVProbeData
*
p
)
{
const
uint8_t
*
d
=
p
->
buf
;
if
(
d
[
0
]
==
'T'
&&
d
[
1
]
==
'T'
&&
d
[
2
]
==
'A'
&&
d
[
3
]
==
'1'
)
if
(
AV_RL32
(
&
p
->
buf
[
0
])
==
MKTAG
(
'T'
,
'T'
,
'A'
,
'1'
)
&&
(
AV_RL16
(
&
p
->
buf
[
4
])
==
1
||
AV_RL16
(
&
p
->
buf
[
4
])
==
2
)
&&
AV_RL16
(
&
p
->
buf
[
6
])
>
0
&&
AV_RL16
(
&
p
->
buf
[
8
])
>
0
&&
AV_RL32
(
&
p
->
buf
[
10
])
>
0
)
return
AVPROBE_SCORE_EXTENSION
+
30
;
return
0
;
}
...
...
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