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
8ff5d1f3
Commit
8ff5d1f3
authored
Mar 29, 2010
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify interleaving code.
Originally committed as revision 22719 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9cba6f5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
wmaprodec.c
libavcodec/wmaprodec.c
+3
-5
No files found.
libavcodec/wmaprodec.c
View file @
8ff5d1f3
...
@@ -1346,14 +1346,12 @@ static int decode_frame(WMAProDecodeCtx *s)
...
@@ -1346,14 +1346,12 @@ static int decode_frame(WMAProDecodeCtx *s)
/** interleave samples and write them to the output buffer */
/** interleave samples and write them to the output buffer */
for
(
i
=
0
;
i
<
s
->
num_channels
;
i
++
)
{
for
(
i
=
0
;
i
<
s
->
num_channels
;
i
++
)
{
float
*
ptr
;
float
*
ptr
=
s
->
samples
+
i
;
int
incr
=
s
->
num_channels
;
int
incr
=
s
->
num_channels
;
float
*
iptr
=
s
->
channel
[
i
].
out
;
float
*
iptr
=
s
->
channel
[
i
].
out
;
int
x
;
float
*
iend
=
iptr
+
s
->
samples_per_frame
;
ptr
=
s
->
samples
+
i
;
for
(
x
=
0
;
x
<
s
->
samples_per_frame
;
x
++
)
{
while
(
iptr
<
iend
)
{
*
ptr
=
av_clipf
(
*
iptr
++
,
-
1
.
0
,
32767
.
0
/
32768
.
0
);
*
ptr
=
av_clipf
(
*
iptr
++
,
-
1
.
0
,
32767
.
0
/
32768
.
0
);
ptr
+=
incr
;
ptr
+=
incr
;
}
}
...
...
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