History

avfilter/palettegen: misc cosmetics

Clément Bœsch committed 3 years ago

Commit 61d334d1 parent efb0a6f1 file · +2 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_palettegen.c+2−2
@@ -132,7 +132,7 @@ static int cmp_color(const void *a, const void *b) · 131 unmodified lines
132{132{
133 const struct range_box *box1 = a;133 const struct range_box *box1 = a;
134 const struct range_box *box2 = b;134 const struct range_box *box2 = b;
135 return FFDIFFSIGN(box1->color , box2->color);135 return FFDIFFSIGN(box1->color, box2->color);
136}136}
137 137
138static void compute_box_stats(PaletteGenContext *s, struct range_box *box)138static void compute_box_stats(PaletteGenContext *s, struct range_box *box)
@@ -188,7 +188,7 @@ static int get_next_box_id_to_split(PaletteGenContext *s) · 49 unmodified lines
188 return -1;188 return -1;
189 189
190 for (box_id = 0; box_id < s->nb_boxes; box_id++) {190 for (box_id = 0; box_id < s->nb_boxes; box_id++) {
191 struct range_box *box = &s->boxes[box_id];191 const struct range_box *box = &s->boxes[box_id];
192 if (s->boxes[box_id].len >= 2 && box->cut_score > max_score) {192 if (s->boxes[box_id].len >= 2 && box->cut_score > max_score) {
193 best_box_id = box_id;193 best_box_id = box_id;
194 max_score = box->cut_score;194 max_score = box->cut_score;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t