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
bf6497e9
Commit
bf6497e9
authored
May 21, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify add_wav()
Originally committed as revision 13214 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
c7666095
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
ra144.c
libavcodec/ra144.c
+6
-15
No files found.
libavcodec/ra144.c
View file @
bf6497e9
...
...
@@ -129,30 +129,21 @@ static int irms(const short *data, int factor)
static
void
add_wav
(
int
n
,
int
f
,
int
m1
,
int
m2
,
int
m3
,
const
short
*
s1
,
const
short
*
s2
,
const
short
*
s3
,
short
*
dest
)
{
int
a
,
b
,
c
,
i
;
int
a
=
0
;
int
b
,
c
,
i
;
const
short
*
ptr
,
*
ptr2
;
ptr
=
wavtable1
+
n
*
9
;
ptr2
=
wavtable2
+
n
*
9
;
if
(
f
!=
0
)
a
=
((
*
ptr
)
*
m1
)
>>
((
*
ptr2
)
+
1
);
else
a
=
0
;
if
(
f
)
a
=
(
ptr
[
0
]
*
m1
)
>>
(
ptr2
[
0
]
+
1
);
ptr
++
;
ptr2
++
;
b
=
((
*
ptr
)
*
m2
)
>>
((
*
ptr2
)
+
1
);
ptr
++
;
ptr2
++
;
c
=
((
*
ptr
)
*
m3
)
>>
((
*
ptr2
)
+
1
);
b
=
(
ptr
[
1
]
*
m2
)
>>
(
ptr2
[
1
]
+
1
);
c
=
(
ptr
[
2
]
*
m3
)
>>
(
ptr2
[
2
]
+
1
);
if
(
f
!=
0
)
for
(
i
=
0
;
i
<
BLOCKSIZE
;
i
++
)
dest
[
i
]
=
((
*
(
s1
++
))
*
a
+
(
*
(
s2
++
))
*
b
+
(
*
(
s3
++
))
*
c
)
>>
12
;
else
for
(
i
=
0
;
i
<
BLOCKSIZE
;
i
++
)
dest
[
i
]
=
((
*
(
s2
++
))
*
b
+
(
*
(
s3
++
))
*
c
)
>>
12
;
}
...
...
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