Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2019-05-04 17:31:25 +0300
committerMartin Storsjö <martin@martin.st>2019-05-04 17:37:41 +0300
commit058ca08d081f0c59910daceb854d6a94b4e6f9f0 (patch)
treea7570e6d450b77b5eda614947bdc5d833a37f90b /src/itx_tmpl.c
parentde2059a1167ed560269c3253768929ef19cae989 (diff)
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.
Diffstat (limited to 'src/itx_tmpl.c')
-rw-r--r--src/itx_tmpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/itx_tmpl.c b/src/itx_tmpl.c
index 69b29e6..9708d97 100644
--- a/src/itx_tmpl.c
+++ b/src/itx_tmpl.c
@@ -50,7 +50,7 @@ inv_txfm_add_c(pixel *dst, const ptrdiff_t stride,
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;