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
87b9c23b
Commit
87b9c23b
authored
Nov 04, 2011
by
Mashiat Sarker Shakkhar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement clear_codec_buffers()
parent
d58db720
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+21
-0
No files found.
libavcodec/wmalosslessdec.c
View file @
87b9c23b
...
...
@@ -716,6 +716,27 @@ decode_lpc(WmallDecodeCtx *s)
}
static
void
clear_codec_buffers
(
WmallDecodeCtx
*
s
)
{
int
ich
,
ilms
;
memset
(
s
->
acfilter_coeffs
,
0
,
16
*
sizeof
(
int
));
memset
(
s
->
lpc_coefs
,
0
,
40
*
2
*
sizeof
(
int
));
memset
(
s
->
mclms_coeffs
,
0
,
128
*
sizeof
(
int16_t
));
memset
(
s
->
mclms_coeffs_cur
,
0
,
4
*
sizeof
(
int16_t
));
memset
(
s
->
mclms_prevvalues
,
0
,
64
*
sizeof
(
int
));
memset
(
s
->
mclms_updates
,
0
,
64
*
sizeof
(
int16_t
));
for
(
ich
=
0
;
ich
<
s
->
num_channels
;
ich
++
)
{
for
(
ilms
=
0
;
ilms
<
s
->
cdlms_ttl
[
ich
];
ilms
++
)
{
memset
(
s
->
cdlms
[
ich
][
ilms
].
coefs
,
0
,
256
*
sizeof
(
int16_t
));
memset
(
s
->
cdlms
[
ich
][
ilms
].
lms_prevvalues
,
0
,
512
*
sizeof
(
int
));
memset
(
s
->
cdlms
[
ich
][
ilms
].
lms_updates
,
0
,
512
*
sizeof
(
int16_t
));
}
s
->
ave_sum
[
ich
]
=
0
;
}
}
/**
*@brief Decode a single subframe (block).
...
...
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