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
c3298582
Commit
c3298582
authored
May 21, 2008
by
Vitor Sessak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify irms()
Originally committed as revision 13215 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
bf6497e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
ra144.c
libavcodec/ra144.c
+3
-5
No files found.
libavcodec/ra144.c
View file @
c3298582
...
...
@@ -112,12 +112,10 @@ static void rotate_block(const short *source, short *target, int offset)
/* inverse root mean square */
static
int
irms
(
const
short
*
data
,
int
factor
)
{
const
short
*
p1
,
*
p2
;
unsigned
int
sum
;
unsigned
int
i
,
sum
=
0
;
p2
=
(
p1
=
data
)
+
BLOCKSIZE
;
for
(
sum
=
0
;
p2
>
p1
;
p1
++
)
sum
+=
(
*
p1
)
*
(
*
p1
);
for
(
i
=
0
;
i
<
BLOCKSIZE
;
i
++
)
sum
+=
data
[
i
]
*
data
[
i
];
if
(
sum
==
0
)
return
0
;
/* OOPS - division by zero */
...
...
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