]> granicus.if.org Git - libvpx/commitdiff
Fix warning about bitwise 'not' on boolean
authorJohann <johannkoenig@google.com>
Tue, 9 Jan 2018 20:46:45 +0000 (12:46 -0800)
committerJohann <johannkoenig@google.com>
Tue, 30 Jan 2018 22:47:38 +0000 (14:47 -0800)
cherry-picked from libaom:
commit cf26ee5ad2b9da79fa68c33b7d22ff53c66d6509
Author: Sebastien Alaiwan <sebastien.alaiwan@allegrodvt.com>
Date: Wed, 4 Oct 2017 10:09:13 +0200

BUG=webm:1491

Change-Id: I36c6e83ed716649f3d9ee10ce3aa9bb847cac2d9

vp9/common/vp9_loopfilter.c

index c7c343aed5d775b0a6535c5e8d5718d2cc5071cb..da9180b71a53aebce8eec8d42b466f73d96a897e 100644 (file)
@@ -1174,7 +1174,7 @@ void vp9_filter_block_plane_non420(VP9_COMMON *cm,
     }
 
     // Disable filtering on the leftmost column
-    border_mask = ~(mi_col == 0);
+    border_mask = ~(mi_col == 0 ? 1 : 0);
 #if CONFIG_VP9_HIGHBITDEPTH
     if (cm->use_highbitdepth) {
       highbd_filter_selectively_vert(