shithub: libvpx

Download patch

ref: f60171bb4f362f8729b69272bcf03f1e4c0b040a
parent: 3bda634576e14c67f692d0c3a9654b765ba40868
parent: 32f68cc58c1f3b7a5cb102e55b9987336a1c2770
author: Johann Koenig <[email protected]>
date: Wed Feb 1 14:57:29 EST 2017

Merge "deblock: annotate postproc parameters"

--- a/vpx_dsp/deblock.c
+++ b/vpx_dsp/deblock.c
@@ -7,6 +7,7 @@
  *  in the file PATENTS.  All contributing project authors may
  *  be found in the AUTHORS file in the root of the source tree.
  */
+#include <assert.h>
 #include <stdlib.h>
 #include "vpx/vpx_integer.h"
 
@@ -47,6 +48,9 @@
   int col;
   unsigned char v;
   unsigned char d[4];
+
+  assert(size >= 8);
+  assert(cols >= 8);
 
   for (row = 0; row < size; row++) {
     /* post_proc_down for one row */