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
614842a9
Commit
614842a9
authored
Jun 05, 2010
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup apply_window_and_mdct().
Originally committed as revision 23495 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
b8c2c41d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
aacenc.c
libavcodec/aacenc.c
+5
-10
No files found.
libavcodec/aacenc.c
View file @
614842a9
...
...
@@ -234,25 +234,21 @@ static void apply_window_and_mdct(AVCodecContext *avctx, AACEncContext *s,
s
->
output
[
i
]
=
sce
->
saved
[
i
];
}
if
(
sce
->
ics
.
window_sequence
[
0
]
!=
LONG_START_SEQUENCE
)
{
j
=
channel
;
for
(
i
=
0
;
i
<
1024
;
i
++
,
j
+=
avctx
->
channels
)
{
for
(
i
=
0
,
j
=
channel
;
i
<
1024
;
i
++
,
j
+=
avctx
->
channels
)
{
s
->
output
[
i
+
1024
]
=
audio
[
j
]
*
lwindow
[
1024
-
i
-
1
];
sce
->
saved
[
i
]
=
audio
[
j
]
*
lwindow
[
i
];
}
}
else
{
j
=
channel
;
for
(
i
=
0
;
i
<
448
;
i
++
,
j
+=
avctx
->
channels
)
for
(
i
=
0
,
j
=
channel
;
i
<
448
;
i
++
,
j
+=
avctx
->
channels
)
s
->
output
[
i
+
1024
]
=
audio
[
j
];
for
(
i
=
448
;
i
<
576
;
i
++
,
j
+=
avctx
->
channels
)
for
(;
i
<
576
;
i
++
,
j
+=
avctx
->
channels
)
s
->
output
[
i
+
1024
]
=
audio
[
j
]
*
swindow
[
576
-
i
-
1
];
memset
(
s
->
output
+
1024
+
576
,
0
,
sizeof
(
s
->
output
[
0
])
*
448
);
j
=
channel
;
for
(
i
=
0
;
i
<
1024
;
i
++
,
j
+=
avctx
->
channels
)
for
(
i
=
0
,
j
=
channel
;
i
<
1024
;
i
++
,
j
+=
avctx
->
channels
)
sce
->
saved
[
i
]
=
audio
[
j
];
}
ff_mdct_calc
(
&
s
->
mdct1024
,
sce
->
coeffs
,
s
->
output
);
}
else
{
j
=
channel
;
for
(
k
=
0
;
k
<
1024
;
k
+=
128
)
{
for
(
i
=
448
+
k
;
i
<
448
+
k
+
256
;
i
++
)
s
->
output
[
i
-
448
-
k
]
=
(
i
<
1024
)
...
...
@@ -262,8 +258,7 @@ static void apply_window_and_mdct(AVCodecContext *avctx, AACEncContext *s,
s
->
dsp
.
vector_fmul_reverse
(
s
->
output
+
128
,
s
->
output
+
128
,
swindow
,
128
);
ff_mdct_calc
(
&
s
->
mdct128
,
sce
->
coeffs
+
k
,
s
->
output
);
}
j
=
channel
;
for
(
i
=
0
;
i
<
1024
;
i
++
,
j
+=
avctx
->
channels
)
for
(
i
=
0
,
j
=
channel
;
i
<
1024
;
i
++
,
j
+=
avctx
->
channels
)
sce
->
saved
[
i
]
=
audio
[
j
];
}
}
...
...
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