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
c5a83765
Commit
c5a83765
authored
Dec 09, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not detect "00000000..." (and other non-changing values) as adp.
parent
45fd4ec9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
adp.c
libavformat/adp.c
+9
-2
No files found.
libavformat/adp.c
View file @
c5a83765
...
...
@@ -26,14 +26,21 @@
static
int
adp_probe
(
AVProbeData
*
p
)
{
int
i
;
int
i
,
changes
=
0
;
char
last
=
0
;
if
(
p
->
buf_size
<
32
)
return
0
;
for
(
i
=
0
;
i
<
p
->
buf_size
-
3
;
i
+=
32
)
for
(
i
=
0
;
i
<
p
->
buf_size
-
3
;
i
+=
32
)
{
if
(
p
->
buf
[
i
]
!=
p
->
buf
[
i
+
2
]
||
p
->
buf
[
i
+
1
]
!=
p
->
buf
[
i
+
3
])
return
0
;
if
(
p
->
buf
[
i
]
!=
last
)
changes
++
;
last
=
p
->
buf
[
i
];
}
if
(
changes
<=
1
)
return
0
;
return
p
->
buf_size
<
260
?
1
:
AVPROBE_SCORE_MAX
/
4
;
}
...
...
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