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
5116b92d
Commit
5116b92d
authored
Jun 19, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc cosmetics
Originally committed as revision 13830 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e7782578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ra144.c
libavcodec/ra144.c
+2
-4
No files found.
libavcodec/ra144.c
View file @
5116b92d
...
@@ -135,9 +135,8 @@ static void add_wav(int n, int skip_first, int *m, const int16_t *s1,
...
@@ -135,9 +135,8 @@ static void add_wav(int n, int skip_first, int *m, const int16_t *s1,
dest
[
i
]
=
((
*
(
s1
++
))
*
v
[
0
]
+
(
*
(
s2
++
))
*
v
[
1
]
+
(
*
(
s3
++
))
*
v
[
2
])
>>
12
;
dest
[
i
]
=
((
*
(
s1
++
))
*
v
[
0
]
+
(
*
(
s2
++
))
*
v
[
1
]
+
(
*
(
s3
++
))
*
v
[
2
])
>>
12
;
}
}
static
void
lpc_filter
(
const
int16_t
*
lpc_coefs
,
const
int16_t
*
adapt_coef
,
static
void
lpc_filter
(
const
int16_t
*
lpc_coefs
,
const
int16_t
*
adapt_coef
,
void
*
out
,
int
*
statbuf
,
int
len
)
void
*
out
,
int
*
statbuf
,
int
len
)
{
{
int
x
,
i
;
int
x
,
i
;
uint16_t
work
[
50
];
uint16_t
work
[
50
];
...
@@ -331,7 +330,7 @@ static int ra144_decode_frame(AVCodecContext * avctx,
...
@@ -331,7 +330,7 @@ static int ra144_decode_frame(AVCodecContext * avctx,
const
uint8_t
*
buf
,
int
buf_size
)
const
uint8_t
*
buf
,
int
buf_size
)
{
{
static
const
uint8_t
sizes
[
10
]
=
{
6
,
5
,
5
,
4
,
4
,
3
,
3
,
3
,
3
,
2
};
static
const
uint8_t
sizes
[
10
]
=
{
6
,
5
,
5
,
4
,
4
,
3
,
3
,
3
,
3
,
2
};
unsigned
int
refl_rms
[
4
];
// RMS of the reflection coefficients
unsigned
int
refl_rms
[
4
];
// RMS of the reflection coefficients
uint16_t
block_coefs
[
4
][
30
];
// LPC coefficients of each sub-block
uint16_t
block_coefs
[
4
][
30
];
// LPC coefficients of each sub-block
unsigned
int
lpc_refl
[
10
];
// LPC reflection coefficients of the frame
unsigned
int
lpc_refl
[
10
];
// LPC reflection coefficients of the frame
int
i
,
c
;
int
i
,
c
;
...
@@ -384,7 +383,6 @@ static int ra144_decode_frame(AVCodecContext * avctx,
...
@@ -384,7 +383,6 @@ static int ra144_decode_frame(AVCodecContext * avctx,
return
20
;
return
20
;
}
}
AVCodec
ra_144_decoder
=
AVCodec
ra_144_decoder
=
{
{
"real_144"
,
"real_144"
,
...
...
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