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
3f5dcde7
Commit
3f5dcde7
authored
Jul 17, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove VLAs in ff_amrwb_lsp2lpc()
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
b13c6e33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lsp.c
libavcodec/lsp.c
+2
-2
lsp.h
libavcodec/lsp.h
+1
-1
No files found.
libavcodec/lsp.c
View file @
3f5dcde7
...
...
@@ -120,8 +120,8 @@ void ff_acelp_lsp2lpc(int16_t* lp, const int16_t* lsp, int lp_half_order)
void
ff_amrwb_lsp2lpc
(
const
double
*
lsp
,
float
*
lp
,
int
lp_order
)
{
int
lp_half_order
=
lp_order
>>
1
;
double
buf
[
lp_half_order
+
1
];
double
pa
[
lp_half_order
+
1
];
double
buf
[
MAX_LP_HALF_ORDER
+
1
];
double
pa
[
MAX_LP_HALF_ORDER
+
1
];
double
*
qa
=
buf
+
1
;
int
i
,
j
;
...
...
libavcodec/lsp.h
View file @
3f5dcde7
...
...
@@ -91,7 +91,7 @@ void ff_amrwb_lsp2lpc(const double *lsp, float *lp, int lp_order);
void
ff_acelp_lp_decode
(
int16_t
*
lp_1st
,
int16_t
*
lp_2nd
,
const
int16_t
*
lsp_2nd
,
const
int16_t
*
lsp_prev
,
int
lp_order
);
#define MAX_LP_HALF_ORDER
8
#define MAX_LP_HALF_ORDER
10
#define MAX_LP_ORDER (2*MAX_LP_HALF_ORDER)
/**
...
...
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