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
802bcdcb
Commit
802bcdcb
authored
Aug 02, 2012
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g723_1: fix upper bound parameter from inverse maximum autocorrelation
parent
8ddadea1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
g723_1.c
libavcodec/g723_1.c
+4
-1
No files found.
libavcodec/g723_1.c
View file @
802bcdcb
...
@@ -630,7 +630,10 @@ static int autocorr_max(G723_1_Context *p, int offset, int *ccr_max,
...
@@ -630,7 +630,10 @@ static int autocorr_max(G723_1_Context *p, int offset, int *ccr_max,
int
i
;
int
i
;
pitch_lag
=
FFMIN
(
PITCH_MAX
-
3
,
pitch_lag
);
pitch_lag
=
FFMIN
(
PITCH_MAX
-
3
,
pitch_lag
);
if
(
dir
>
0
)
limit
=
FFMIN
(
FRAME_LEN
+
PITCH_MAX
-
offset
-
length
,
pitch_lag
+
3
);
limit
=
FFMIN
(
FRAME_LEN
+
PITCH_MAX
-
offset
-
length
,
pitch_lag
+
3
);
else
limit
=
pitch_lag
+
3
;
for
(
i
=
pitch_lag
-
3
;
i
<=
limit
;
i
++
)
{
for
(
i
=
pitch_lag
-
3
;
i
<=
limit
;
i
++
)
{
ccr
=
dot_product
(
buf
,
buf
+
dir
*
i
,
length
,
1
);
ccr
=
dot_product
(
buf
,
buf
+
dir
*
i
,
length
,
1
);
...
...
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