shithub: dav1d

Download patch

ref: 058ca08d081f0c59910daceb854d6a94b4e6f9f0
parent: de2059a1167ed560269c3253768929ef19cae989
author: Martin Storsjö <[email protected]>
date: Sat May 4 13:31:25 EDT 2019

itx_tmpl: Fix the assert in inv_txfm_add_c

The previous form of the assert was automatically true for any
value of w and h.

--- a/src/itx_tmpl.c
+++ b/src/itx_tmpl.c
@@ -50,7 +50,7 @@
                const int has_dconly HIGHBD_DECL_SUFFIX)
 {
     int i, j;
-    assert((h >= 4 || h <= 64) && (w >= 4 || w <= 64));
+    assert((h >= 4 && h <= 64) && (w >= 4 && w <= 64));
     const int is_rect2 = w * 2 == h || h * 2 == w;
     const int bitdepth = bitdepth_from_max(bitdepth_max);
     const int rnd = (1 << shift) >> 1;