Commit 6b8e952e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

fourcc: make FourCC order total

The order of aliased entries was dependent on the build machine. This
is not a problem for good input, but affects duplicate detection.
parent 332ded0c
......@@ -57,8 +57,10 @@ struct entry
static int cmp_entry(const void *a, const void *b)
{
const struct entry *ea = a, *eb = b;
return memcmp(ea->alias, eb->alias, 4);
int d = memcmp(ea->alias, eb->alias, 4);
if (d == 0)
d = memcmp(ea->fourcc, eb->fourcc, 4);
return d;
}
static void process_list(const char *name, const staticentry_t *list, size_t n)
......
Markdown is supported
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