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
e5902d60
Commit
e5902d60
authored
Jul 15, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacps: skip some memcpy() if src and dst would be equal
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
d3bb7191
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
aacps.c
libavcodec/aacps.c
+11
-8
No files found.
libavcodec/aacps.c
View file @
e5902d60
...
@@ -813,6 +813,7 @@ static void stereo_processing(PSContext *ps, float (*l)[32][2], float (*r)[32][2
...
@@ -813,6 +813,7 @@ static void stereo_processing(PSContext *ps, float (*l)[32][2], float (*r)[32][2
const
float
(
*
H_LUT
)[
8
][
4
]
=
(
PS_BASELINE
||
ps
->
icc_mode
<
3
)
?
HA
:
HB
;
const
float
(
*
H_LUT
)[
8
][
4
]
=
(
PS_BASELINE
||
ps
->
icc_mode
<
3
)
?
HA
:
HB
;
//Remapping
//Remapping
if
(
ps
->
num_env_old
)
{
memcpy
(
H11
[
0
][
0
],
H11
[
0
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H11
[
0
][
0
][
0
]));
memcpy
(
H11
[
0
][
0
],
H11
[
0
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H11
[
0
][
0
][
0
]));
memcpy
(
H11
[
1
][
0
],
H11
[
1
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H11
[
1
][
0
][
0
]));
memcpy
(
H11
[
1
][
0
],
H11
[
1
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H11
[
1
][
0
][
0
]));
memcpy
(
H12
[
0
][
0
],
H12
[
0
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H12
[
0
][
0
][
0
]));
memcpy
(
H12
[
0
][
0
],
H12
[
0
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H12
[
0
][
0
][
0
]));
...
@@ -821,6 +822,8 @@ static void stereo_processing(PSContext *ps, float (*l)[32][2], float (*r)[32][2
...
@@ -821,6 +822,8 @@ static void stereo_processing(PSContext *ps, float (*l)[32][2], float (*r)[32][2
memcpy
(
H21
[
1
][
0
],
H21
[
1
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H21
[
1
][
0
][
0
]));
memcpy
(
H21
[
1
][
0
],
H21
[
1
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H21
[
1
][
0
][
0
]));
memcpy
(
H22
[
0
][
0
],
H22
[
0
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H22
[
0
][
0
][
0
]));
memcpy
(
H22
[
0
][
0
],
H22
[
0
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H22
[
0
][
0
][
0
]));
memcpy
(
H22
[
1
][
0
],
H22
[
1
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H22
[
1
][
0
][
0
]));
memcpy
(
H22
[
1
][
0
],
H22
[
1
][
ps
->
num_env_old
],
PS_MAX_NR_IIDICC
*
sizeof
(
H22
[
1
][
0
][
0
]));
}
if
(
is34
)
{
if
(
is34
)
{
remap34
(
&
iid_mapped
,
ps
->
iid_par
,
ps
->
nr_iid_par
,
ps
->
num_env
,
1
);
remap34
(
&
iid_mapped
,
ps
->
iid_par
,
ps
->
nr_iid_par
,
ps
->
num_env
,
1
);
remap34
(
&
icc_mapped
,
ps
->
icc_par
,
ps
->
nr_icc_par
,
ps
->
num_env
,
1
);
remap34
(
&
icc_mapped
,
ps
->
icc_par
,
ps
->
nr_icc_par
,
ps
->
num_env
,
1
);
...
...
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