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
7becc703
Commit
7becc703
authored
Jun 25, 2018
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/amr: Fix heuristic to avoid detection of repeated bytes.
parent
4ac88ba5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
amr.c
libavformat/amr.c
+2
-4
No files found.
libavformat/amr.c
View file @
7becc703
...
...
@@ -184,12 +184,11 @@ static int amrnb_probe(AVProbeData *p)
while
(
i
<
p
->
buf_size
)
{
mode
=
b
[
i
]
>>
3
&
0x0F
;
if
(
mode
<
9
&&
(
b
[
i
]
&
0x4
)
==
0x4
)
{
int
last
=
mode
;
int
last
=
b
[
i
]
;
int
size
=
amrnb_packed_size
[
mode
];
while
(
size
--
)
{
if
(
b
[
++
i
]
!=
last
)
break
;
last
=
b
[
i
];
}
if
(
size
>
0
)
{
valid
++
;
...
...
@@ -241,12 +240,11 @@ static int amrwb_probe(AVProbeData *p)
while
(
i
<
p
->
buf_size
)
{
mode
=
b
[
i
]
>>
3
&
0x0F
;
if
(
mode
<
10
&&
(
b
[
i
]
&
0x4
)
==
0x4
)
{
int
last
=
mode
;
int
last
=
b
[
i
]
;
int
size
=
amrwb_packed_size
[
mode
];
while
(
size
--
)
{
if
(
b
[
++
i
]
!=
last
)
break
;
last
=
b
[
i
];
}
if
(
size
>
0
)
{
valid
++
;
...
...
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