aboutsummaryrefslogtreecommitdiff
path: root/src/decoder/partition.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/partition.cc')
-rw-r--r--src/decoder/partition.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/decoder/partition.cc b/src/decoder/partition.cc
index 90d39fd..43ff6f0 100644
--- a/src/decoder/partition.cc
+++ b/src/decoder/partition.cc
@@ -14,6 +14,7 @@
#include "src/decoder/partition.h"
#include "src/base/bottom_n.h"
+#include "src/base/utils.h"
#include "src/decoder/footprint.h"
#include <algorithm>
@@ -399,12 +400,12 @@ constexpr int EncodeDims(int width, int height) {
int PartitionMetric(const Partition& a, const Partition& b) {
// Make sure that one partition is at least a subset of the other...
- assert(a.footprint == b.footprint);
+ UTILS_RELEASE_ASSERT(a.footprint == b.footprint);
// Make sure that the number of parts is within our limits. ASTC has a maximum
// of four subsets per block according to the specification.
- assert(a.num_parts <= kMaxNumSubsets);
- assert(b.num_parts <= kMaxNumSubsets);
+ UTILS_RELEASE_ASSERT(a.num_parts <= kMaxNumSubsets);
+ UTILS_RELEASE_ASSERT(b.num_parts <= kMaxNumSubsets);
const int w = a.footprint.Width();
const int h = b.footprint.Height();