Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -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 | ||
| 138 | static void compute_box_stats(PaletteGenContext *s, struct range_box *box) | 138 | 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) · 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; |