]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_palettegen.c
avfilter/af_compand: do not clip; allow >0dB curve points
[ffmpeg] / libavfilter / vf_palettegen.c
index df57c10982fbcbeeaf4cf8df8bfeae3396bce7f9..fccc5ca3fc0ac21b1175cfffeb7e77694b7de2fe 100644 (file)
@@ -130,7 +130,7 @@ static int cmp_color(const void *a, const void *b)
 {
     const struct range_box *box1 = a;
     const struct range_box *box2 = b;
-    return box1->color - box2->color;
+    return FFDIFFSIGN(box1->color , box2->color);
 }
 
 static av_always_inline int diff(const uint32_t a, const uint32_t b)