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
5be8a373
Commit
5be8a373
authored
Jun 01, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10l (array[-1] ...)
Originally committed as revision 1924 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8809cfee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
4xm.c
libavcodec/4xm.c
+12
-11
No files found.
libavcodec/4xm.c
View file @
5be8a373
...
...
@@ -492,22 +492,23 @@ static uint8_t *read_huffman_tables(FourXContext *f, uint8_t * const buf){
// printf("%2X", ptr[j]);
for
(
j
=
257
;
j
<
512
;
j
++
){
int
smallest
[
2
]
=
{
-
1
,
-
1
};
int
min_freq
[
2
]
=
{
256
*
256
,
256
*
256
};
int
smallest
[
2
]
=
{
0
,
0
};
int
i
;
for
(
i
=
0
;
i
<
j
;
i
++
){
if
(
frequency
[
i
]
==
0
)
continue
;
if
(
frequency
[
i
]
<
frequency
[
smallest
[
1
]
]){
if
(
frequency
[
i
]
<
frequency
[
smallest
[
0
]
]){
smallest
[
1
]
=
smallest
[
0
];
smallest
[
0
]
=
i
;
}
else
smallest
[
1
]
=
i
;
if
(
frequency
[
i
]
<
min_freq
[
1
]){
if
(
frequency
[
i
]
<
min_freq
[
0
]){
min_freq
[
1
]
=
min_freq
[
0
];
smallest
[
1
]
=
smallest
[
0
];
min_freq
[
0
]
=
frequency
[
i
];
smallest
[
0
]
=
i
;
}
else
{
min_freq
[
1
]
=
frequency
[
i
];
smallest
[
1
]
=
i
;
}
}
}
if
(
min_freq
[
1
]
==
256
*
256
)
break
;
if
(
smallest
[
1
]
==
-
1
)
break
;
frequency
[
j
]
=
frequency
[
smallest
[
0
]
]
+
frequency
[
smallest
[
1
]
];
frequency
[
j
]
=
min_freq
[
0
]
+
min_freq
[
1
];
flag
[
smallest
[
0
]
]
=
0
;
flag
[
smallest
[
1
]
]
=
1
;
up
[
smallest
[
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