Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libwds/common/video_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ std::pair<unsigned, unsigned> 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 <typename RREnum>
Expand Down