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
425a8435
Commit
425a8435
authored
Oct 26, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
binkaudio: change short to int16_t
parent
4f4e1948
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
binkaudio.c
libavcodec/binkaudio.c
+3
-3
No files found.
libavcodec/binkaudio.c
View file @
425a8435
...
@@ -58,7 +58,7 @@ typedef struct {
...
@@ -58,7 +58,7 @@ typedef struct {
unsigned
int
*
bands
;
unsigned
int
*
bands
;
float
root
;
float
root
;
DECLARE_ALIGNED
(
32
,
FFTSample
,
coeffs
)[
BINK_BLOCK_MAX_SIZE
];
DECLARE_ALIGNED
(
32
,
FFTSample
,
coeffs
)[
BINK_BLOCK_MAX_SIZE
];
DECLARE_ALIGNED
(
16
,
shor
t
,
previous
)[
BINK_BLOCK_MAX_SIZE
/
16
];
///< coeffs from previous audio block
DECLARE_ALIGNED
(
16
,
int16_
t
,
previous
)[
BINK_BLOCK_MAX_SIZE
/
16
];
///< coeffs from previous audio block
DECLARE_ALIGNED
(
16
,
int16_t
,
current
)[
BINK_BLOCK_MAX_SIZE
/
16
];
DECLARE_ALIGNED
(
16
,
int16_t
,
current
)[
BINK_BLOCK_MAX_SIZE
/
16
];
float
*
coeffs_ptr
[
MAX_CHANNELS
];
///< pointers to the coeffs arrays for float_to_int16_interleave
float
*
coeffs_ptr
[
MAX_CHANNELS
];
///< pointers to the coeffs arrays for float_to_int16_interleave
float
*
prev_ptr
[
MAX_CHANNELS
];
///< pointers to the overlap points in the coeffs array
float
*
prev_ptr
[
MAX_CHANNELS
];
///< pointers to the overlap points in the coeffs array
...
@@ -174,7 +174,7 @@ static const uint8_t rle_length_tab[16] = {
...
@@ -174,7 +174,7 @@ static const uint8_t rle_length_tab[16] = {
* @param[out] out Output buffer (must contain s->block_size elements)
* @param[out] out Output buffer (must contain s->block_size elements)
* @return 0 on success, negative error code on failure
* @return 0 on success, negative error code on failure
*/
*/
static
int
decode_block
(
BinkAudioContext
*
s
,
shor
t
*
out
,
int
use_dct
)
static
int
decode_block
(
BinkAudioContext
*
s
,
int16_
t
*
out
,
int
use_dct
)
{
{
int
ch
,
i
,
j
,
k
;
int
ch
,
i
,
j
,
k
;
float
q
,
quant
[
25
];
float
q
,
quant
[
25
];
...
@@ -307,7 +307,7 @@ static int decode_frame(AVCodecContext *avctx,
...
@@ -307,7 +307,7 @@ static int decode_frame(AVCodecContext *avctx,
AVPacket
*
avpkt
)
AVPacket
*
avpkt
)
{
{
BinkAudioContext
*
s
=
avctx
->
priv_data
;
BinkAudioContext
*
s
=
avctx
->
priv_data
;
shor
t
*
samples
=
data
;
int16_
t
*
samples
=
data
;
GetBitContext
*
gb
=
&
s
->
gb
;
GetBitContext
*
gb
=
&
s
->
gb
;
int
out_size
,
consumed
=
0
;
int
out_size
,
consumed
=
0
;
...
...
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