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
cbcf1b41
Commit
cbcf1b41
authored
Aug 11, 2012
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g723.1: declare a variable in the block it is used
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
35b533e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
g723_1.c
libavcodec/g723_1.c
+2
-2
No files found.
libavcodec/g723_1.c
View file @
cbcf1b41
...
...
@@ -1006,7 +1006,6 @@ static int g723_1_decode_frame(AVCodecContext *avctx, void *data,
int16_t
cur_lsp
[
LPC_ORDER
];
int16_t
lpc
[
SUBFRAMES
*
LPC_ORDER
];
int16_t
acb_vector
[
SUBFRAME_LEN
];
int16_t
*
vector_ptr
;
int16_t
*
out
;
int
bad_frame
=
0
,
i
,
j
,
ret
;
int16_t
*
audio
=
p
->
audio
;
...
...
@@ -1051,8 +1050,9 @@ static int g723_1_decode_frame(AVCodecContext *avctx, void *data,
/* Generate the excitation for the frame */
memcpy
(
p
->
excitation
,
p
->
prev_excitation
,
PITCH_MAX
*
sizeof
(
*
p
->
excitation
));
vector_ptr
=
p
->
excitation
+
PITCH_MAX
;
if
(
!
p
->
erased_frames
)
{
int16_t
*
vector_ptr
=
p
->
excitation
+
PITCH_MAX
;
/* Update interpolation gain memory */
p
->
interp_gain
=
fixed_cb_gain
[(
p
->
subframe
[
2
].
amp_index
+
p
->
subframe
[
3
].
amp_index
)
>>
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