Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
36552917
Commit
36552917
authored
Sep 21, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/cafdec: improve probing
parent
ea063171
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
cafdec.c
libavformat/cafdec.c
+9
-3
No files found.
libavformat/cafdec.c
View file @
36552917
...
...
@@ -52,9 +52,15 @@ typedef struct CafContext {
static
int
probe
(
const
AVProbeData
*
p
)
{
if
(
AV_RB32
(
p
->
buf
)
==
MKBETAG
(
'c'
,
'a'
,
'f'
,
'f'
)
&&
AV_RB16
(
&
p
->
buf
[
4
])
==
1
)
return
AVPROBE_SCORE_MAX
;
return
0
;
if
(
AV_RB32
(
p
->
buf
)
!=
MKBETAG
(
'c'
,
'a'
,
'f'
,
'f'
))
return
0
;
if
(
AV_RB16
(
&
p
->
buf
[
4
])
!=
1
)
return
0
;
if
(
AV_RB32
(
p
->
buf
+
8
)
!=
MKBETAG
(
'd'
,
'e'
,
's'
,
'c'
))
return
0
;
if
(
AV_RB64
(
p
->
buf
+
12
)
!=
32
)
return
0
;
return
AVPROBE_SCORE_MAX
;
}
/** Read audio description chunk */
...
...
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