ffmpeg | branch: master | Clément Bœsch <u...@pkh.me> | Tue Dec 27 19:29:50 
2022 +0100| [3a4a6c78151ecde5535b82aeb62762b349d0a4d7] | committer: Clément 
Bœsch

avfilter/palettegen: use libc qsort

Now that the sort function is deterministic, we can rely on the libc
sorting function.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3a4a6c78151ecde5535b82aeb62762b349d0a4d7
---

 libavfilter/vf_palettegen.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavfilter/vf_palettegen.c b/libavfilter/vf_palettegen.c
index 784e81b875..507690fa82 100644
--- a/libavfilter/vf_palettegen.c
+++ b/libavfilter/vf_palettegen.c
@@ -26,7 +26,6 @@
 #include "libavutil/avassert.h"
 #include "libavutil/internal.h"
 #include "libavutil/opt.h"
-#include "libavutil/qsort.h"
 #include "libavutil/intreadwrite.h"
 #include "avfilter.h"
 #include "internal.h"
@@ -352,7 +351,7 @@ static AVFrame *get_palette_frame(AVFilterContext *ctx)
         /* sort the range by its major axis if it's not already sorted */
         if (box->sorted_by != box->major_axis) {
             cmp_func cmpf = cmp_funcs[box->major_axis];
-            AV_QSORT(&s->refs[box->start], box->len, const struct color_ref *, 
cmpf);
+            qsort(&s->refs[box->start], box->len, sizeof(struct color_ref *), 
cmpf);
             box->sorted_by = box->major_axis;
         }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to