]> git.sesse.net Git - ffmpeg/commit
avcodec/magicyuv: Unify qsort comparison functions
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 31 Aug 2020 17:18:03 +0000 (19:18 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 1 Sep 2020 09:05:38 +0000 (11:05 +0200)
commit18dbbff525dd03ed4faefadbe08f5916b9e23666
treec155cd70c0e3afd88def65e7cda8cb0c96e4b657
parentd0b0fc7cb94f02a7de0d67cb3ba06a243b323a1d
avcodec/magicyuv: Unify qsort comparison functions

Up until now, there were three comparison functions depending upon
bitness. But they all are actually the same, namely a lexical ordering:
entry a > entry b iff a.len > b.len or a.len == b.len and a.sym < b.sym.
So they can be easily unified.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/magicyuv.c