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
48ffaaaa
Commit
48ffaaaa
authored
Feb 09, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swresample/x86/rematrix_init: Use av_mallocz_array()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d80fe5d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rematrix_init.c
libswresample/x86/rematrix_init.c
+2
-2
No files found.
libswresample/x86/rematrix_init.c
View file @
48ffaaaa
...
...
@@ -50,7 +50,7 @@ av_cold void swri_rematrix_init_x86(struct SwrContext *s){
s
->
mix_1_1_simd
=
ff_mix_1_1_a_int16_sse2
;
s
->
mix_2_1_simd
=
ff_mix_2_1_a_int16_sse2
;
}
s
->
native_simd_matrix
=
av_mallocz
(
2
*
num
*
sizeof
(
int16_t
));
s
->
native_simd_matrix
=
av_mallocz
_array
(
num
,
2
*
sizeof
(
int16_t
));
s
->
native_simd_one
=
av_mallocz
(
2
*
sizeof
(
int16_t
));
for
(
i
=
0
;
i
<
nb_out
;
i
++
){
int
sh
=
0
;
...
...
@@ -74,7 +74,7 @@ av_cold void swri_rematrix_init_x86(struct SwrContext *s){
s
->
mix_1_1_simd
=
ff_mix_1_1_a_float_avx
;
s
->
mix_2_1_simd
=
ff_mix_2_1_a_float_avx
;
}
s
->
native_simd_matrix
=
av_mallocz
(
num
*
sizeof
(
float
));
s
->
native_simd_matrix
=
av_mallocz
_array
(
num
,
sizeof
(
float
));
memcpy
(
s
->
native_simd_matrix
,
s
->
native_matrix
,
num
*
sizeof
(
float
));
s
->
native_simd_one
=
av_mallocz
(
sizeof
(
float
));
memcpy
(
s
->
native_simd_one
,
s
->
native_one
,
sizeof
(
float
));
...
...
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