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
4b7f8838
Commit
4b7f8838
authored
Feb 22, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ra144enc: use int16_t* for input samples rather than void*
parent
03359ebc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ra144enc.c
libavcodec/ra144enc.c
+2
-1
No files found.
libavcodec/ra144enc.c
View file @
4b7f8838
...
...
@@ -441,6 +441,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, uint8_t *frame,
int16_t
block_coefs
[
NBLOCKS
][
LPC_ORDER
];
int
lpc_refl
[
LPC_ORDER
];
/**< reflection coefficients of the frame */
unsigned
int
refl_rms
[
NBLOCKS
];
/**< RMS of the reflection coefficients */
const
int16_t
*
samples
=
data
;
int
energy
=
0
;
int
i
,
idx
;
...
...
@@ -515,7 +516,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, uint8_t *frame,
ractx
->
lpc_refl_rms
[
1
]
=
ractx
->
lpc_refl_rms
[
0
];
FFSWAP
(
unsigned
int
*
,
ractx
->
lpc_coef
[
0
],
ractx
->
lpc_coef
[
1
]);
for
(
i
=
0
;
i
<
NBLOCKS
*
BLOCKSIZE
;
i
++
)
ractx
->
curr_block
[
i
]
=
*
((
int16_t
*
)
data
+
i
)
>>
2
;
ractx
->
curr_block
[
i
]
=
samples
[
i
]
>>
2
;
return
FRAMESIZE
;
}
...
...
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