Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
61d334d8
Commit
61d334d8
authored
Dec 27, 2022
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/palettegen: misc cosmetics
parent
efb0a6f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vf_palettegen.c
libavfilter/vf_palettegen.c
+2
-2
No files found.
libavfilter/vf_palettegen.c
View file @
61d334d8
...
...
@@ -132,7 +132,7 @@ static int cmp_color(const void *a, const void *b)
{
const
struct
range_box
*
box1
=
a
;
const
struct
range_box
*
box2
=
b
;
return
FFDIFFSIGN
(
box1
->
color
,
box2
->
color
);
return
FFDIFFSIGN
(
box1
->
color
,
box2
->
color
);
}
static
void
compute_box_stats
(
PaletteGenContext
*
s
,
struct
range_box
*
box
)
...
...
@@ -188,7 +188,7 @@ static int get_next_box_id_to_split(PaletteGenContext *s)
return
-
1
;
for
(
box_id
=
0
;
box_id
<
s
->
nb_boxes
;
box_id
++
)
{
struct
range_box
*
box
=
&
s
->
boxes
[
box_id
];
const
struct
range_box
*
box
=
&
s
->
boxes
[
box_id
];
if
(
s
->
boxes
[
box_id
].
len
>=
2
&&
box
->
cut_score
>
max_score
)
{
best_box_id
=
box_id
;
max_score
=
box
->
cut_score
;
...
...
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