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
c6ac30c8
Commit
c6ac30c8
authored
Oct 13, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
truespeech: use sizeof() instead of hardcoded sizes
parent
6d55506c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
truespeech.c
libavcodec/truespeech.c
+3
-3
No files found.
libavcodec/truespeech.c
View file @
c6ac30c8
...
...
@@ -127,7 +127,7 @@ static void truespeech_correlate_filter(TSContext *dec)
for
(
i
=
0
;
i
<
8
;
i
++
){
if
(
i
>
0
){
memcpy
(
tmp
,
dec
->
cvector
,
i
*
2
);
memcpy
(
tmp
,
dec
->
cvector
,
i
*
sizeof
(
*
tmp
)
);
for
(
j
=
0
;
j
<
i
;
j
++
)
dec
->
cvector
[
j
]
=
((
tmp
[
i
-
j
-
1
]
*
dec
->
vector
[
i
])
+
(
dec
->
cvector
[
j
]
<<
15
)
+
0x4000
)
>>
15
;
...
...
@@ -169,7 +169,7 @@ static void truespeech_apply_twopoint_filter(TSContext *dec, int quart)
t
=
dec
->
offset2
[
quart
];
if
(
t
==
127
){
memset
(
dec
->
newvec
,
0
,
60
*
2
);
memset
(
dec
->
newvec
,
0
,
60
*
sizeof
(
*
dec
->
newvec
)
);
return
;
}
for
(
i
=
0
;
i
<
146
;
i
++
)
...
...
@@ -194,7 +194,7 @@ static void truespeech_place_pulses(TSContext *dec, int16_t *out, int quart)
int16_t
*
ptr2
;
int
coef
;
memset
(
out
,
0
,
60
*
2
);
memset
(
out
,
0
,
60
*
sizeof
(
*
out
)
);
for
(
i
=
0
;
i
<
7
;
i
++
)
{
t
=
dec
->
pulseval
[
quart
]
&
3
;
dec
->
pulseval
[
quart
]
>>=
2
;
...
...
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