Commit e7a9133c authored by Joe Young's avatar Joe Young
Browse files

palette: fix bug in float_comparer()

This function is used by av1_remove_duplicates() to remove
duplicate palette colors.

Change-Id: Ia9943bffa2032bcae92f4a6da86477a8135613f2
parent e8b34bb1
......@@ -126,7 +126,7 @@ void av1_k_means(const float *data, float *centroids, uint8_t *indices, int n,
static int float_comparer(const void *a, const void *b) {
const float fa = *(const float *)a;
const float fb = *(const float *)b;
return (fa > fb) - (fb < fa);
return (fa > fb) - (fa < fb);
int av1_remove_duplicates(float *centroids, int num_centroids) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment