diff mbox series

[FFmpeg-devel,v2,17/32] avfilter/palettegen: misc cosmetics

Message ID 20221227231814.2520181-18-u@pkh.me
State Accepted
Commit 61d334d8c37cd9403eb470e03577df2cfb77ec6a
Headers show
Series [FFmpeg-devel,v2,01/32] avfilter/palettegen: allow a minimum of 2 colors | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Clément Bœsch Dec. 27, 2022, 11:17 p.m. UTC
---
 libavfilter/vf_palettegen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_palettegen.c b/libavfilter/vf_palettegen.c
index 36f0a976d9..ad21882df3 100644
--- a/libavfilter/vf_palettegen.c
+++ b/libavfilter/vf_palettegen.c
@@ -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;