Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
5116b92d
Commit
5116b92d
authored
16 years ago
by
Vitor Sessak
Browse files
Options
Downloads
Patches
Plain Diff
Misc cosmetics
Originally committed as revision 13830 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e7782578
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/ra144.c
+2
-4
2 additions, 4 deletions
libavcodec/ra144.c
with
2 additions
and
4 deletions
libavcodec/ra144.c
+
2
−
4
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"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment