shithub: dav1d

Download patch

ref: 1d3f0266a839df9c190c1db1f5d660ea24f5c0a1
parent: 2fd168a1f004b86c46f1576a5c7046dd85f663e9
author: Luc Trudeau <[email protected]>
date: Tue Mar 24 13:04:03 EDT 2020

Make insert_border src pointer const

--- a/src/wedge.c
+++ b/src/wedge.c
@@ -115,7 +115,7 @@
 
 const uint8_t *dav1d_wedge_masks[N_BS_SIZES][3][2][16];
 
-static void insert_border(uint8_t *const dst, const uint8_t *src,
+static void insert_border(uint8_t *const dst, const uint8_t *const src,
                           const int ctr)
 {
     if (ctr > 4) memset(dst, 0, ctr - 4);
@@ -156,7 +156,8 @@
 }
 
 static COLD void init_chroma(uint8_t *chroma, const uint8_t *luma,
-                        const int sign, const int w, const int h, const int ss_ver)
+                             const int sign, const int w, const int h,
+                             const int ss_ver)
 {
     for (int y = 0; y < h; y += 1 + ss_ver) {
         for (int x = 0; x < w; x += 2) {