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
e9f9175d
Commit
e9f9175d
authored
Sep 29, 2017
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/bit: Fix the G.729 bit auto-detection.
parent
67057aae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
bit.c
libavformat/bit.c
+13
-10
No files found.
libavformat/bit.c
View file @
e9f9175d
...
...
@@ -32,20 +32,23 @@
#if CONFIG_BIT_DEMUXER
static
int
probe
(
AVProbeData
*
p
)
{
int
i
,
j
;
int
i
=
0
,
j
,
valid
=
0
;
if
(
p
->
buf_size
<
0x40
)
return
0
;
for
(
i
=
0
;
i
+
3
<
p
->
buf_size
&&
i
<
10
*
0x50
;
){
if
(
AV_RL16
(
&
p
->
buf
[
0
])
!=
SYNC_WORD
)
while
(
2
*
i
+
3
<
p
->
buf_size
){
if
(
AV_RL16
(
&
p
->
buf
[
2
*
i
++
])
!=
SYNC_WORD
)
return
0
;
j
=
AV_RL16
(
&
p
->
buf
[
2
]);
if
(
j
!=
0x40
&&
j
!=
0x50
)
j
=
AV_RL16
(
&
p
->
buf
[
2
*
i
++
]);
if
(
j
!=
0
&&
j
!=
0x10
&&
j
!=
0x40
&&
j
!=
0x50
&&
j
!=
0x76
)
return
0
;
i
+=
j
;
if
(
j
)
valid
++
;
i
+=
j
;
}
return
AVPROBE_SCORE_EXTENSION
;
if
(
valid
>
10
)
return
AVPROBE_SCORE_MAX
;
if
(
valid
>
2
)
return
AVPROBE_SCORE_EXTENSION
-
1
;
return
0
;
}
static
int
read_header
(
AVFormatContext
*
s
)
...
...
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