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
78f67b7a
Commit
78f67b7a
authored
Jul 02, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 5571 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
79433554
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
flacenc.c
libavcodec/flacenc.c
+6
-7
No files found.
libavcodec/flacenc.c
View file @
78f67b7a
...
...
@@ -301,20 +301,19 @@ static void calc_sums(int pmax, uint32_t *data, int n, int pred_order,
uint32_t
sums
[][
256
])
{
int
i
,
j
;
int
parts
,
cnt
;
uint32_t
*
res
;
int
parts
;
uint32_t
*
res
,
*
res_end
;
/* sums for highest level */
parts
=
(
1
<<
pmax
);
res
=
&
data
[
pred_order
];
cnt
=
(
n
>>
pmax
)
-
pred_order
;
res_end
=
&
data
[
n
>>
pmax
]
;
for
(
i
=
0
;
i
<
parts
;
i
++
)
{
if
(
i
==
1
)
cnt
=
(
n
>>
pmax
);
if
(
i
>
0
)
res
=
&
data
[
i
*
cnt
];
sums
[
pmax
][
i
]
=
0
;
for
(
j
=
0
;
j
<
cnt
;
j
++
)
{
sums
[
pmax
][
i
]
+=
res
[
j
]
;
while
(
res
<
res_end
)
{
sums
[
pmax
][
i
]
+=
*
(
res
++
)
;
}
res_end
+=
n
>>
pmax
;
}
/* sums for lower levels */
for
(
i
=
pmax
-
1
;
i
>=
0
;
i
--
)
{
...
...
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