diff --git a/libwds/common/video_format.cpp b/libwds/common/video_format.cpp index 1852de5..eade3ba 100644 --- a/libwds/common/video_format.cpp +++ b/libwds/common/video_format.cpp @@ -152,10 +152,10 @@ std::pair get_resolution(const H264VideoFormat& format) { bool video_format_sort_func(const H264VideoFormat& a, const H264VideoFormat& b) { if (get_quality_info(a).weight != get_quality_info(b).weight) - return get_quality_info(a).weight < get_quality_info(b).weight; + return get_quality_info(a).weight > get_quality_info(b).weight; if (a.profile != b.profile) - return a.profile < b.profile; - return a.level < b.level; + return a.profile > b.profile; + return a.level > b.level; } template