shithub: dav1d

Download patch

ref: c3fce69fc92b3be064e062a50c0e93b3854a93ae
parent: 0bb538983122e908353d1487407749bce18ee6a6
author: Janne Grunau <janne-vlc@jannau.net>
date: Mon Oct 22 20:59:56 EDT 2018

fix sign compare warnings in dav1d_loopfilter_sbrow

See #97.

--- a/src/lf_apply.c
+++ b/src/lf_apply.c
@@ -157,8 +157,8 @@
     const int halign = (f->bh + 31) & ~31;
     const int ss_ver = f->cur.p.p.layout == DAV1D_PIXEL_LAYOUT_I420;
     const int ss_hor = f->cur.p.p.layout != DAV1D_PIXEL_LAYOUT_I444;
-    const int endy4 = starty4 + imin(hy4 - sby * sbsz, sbsz);
-    const int uv_endy4 = (endy4 + ss_ver) >> ss_ver;
+    const unsigned endy4 = starty4 + imin(hy4 - sby * sbsz, sbsz);
+    const unsigned uv_endy4 = (endy4 + ss_ver) >> ss_ver;
 
     // fix lpf strength at tile col boundaries
     const uint8_t *lpf_y = &f->lf.tx_lpf_right_edge[0][sby << sbl2];