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
14b74d38
Commit
14b74d38
authored
May 23, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
Originally committed as revision 1899 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d07f9043
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
huffyuv.c
libavcodec/huffyuv.c
+7
-9
No files found.
libavcodec/huffyuv.c
View file @
14b74d38
...
...
@@ -237,17 +237,15 @@ static int generate_bits_table(uint32_t *dst, uint8_t *len_table){
uint32_t
bits
=
0
;
for
(
len
=
32
;
len
>
0
;
len
--
){
int
bit
=
1
<<
(
32
-
len
);
for
(
index
=
0
;
index
<
256
;
index
++
){
if
(
len_table
[
index
]
==
len
){
if
(
bits
&
(
bit
-
1
)){
fprintf
(
stderr
,
"Error generating huffman table
\n
"
);
return
-
1
;
}
dst
[
index
]
=
bits
>>
(
32
-
len
);
bits
+=
bit
;
}
if
(
len_table
[
index
]
==
len
)
dst
[
index
]
=
bits
++
;
}
if
(
bits
&
1
){
fprintf
(
stderr
,
"Error generating huffman table
\n
"
);
return
-
1
;
}
bits
>>=
1
;
}
return
0
;
}
...
...
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