]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[libvpx] scan-build: Fix "Assigned value is garbage or undefined" in vpx_post_proc_do...
authorAndrey Volk <andywolk@gmail.com>
Thu, 20 Feb 2020 19:10:02 +0000 (23:10 +0400)
committerAndrey Volk <andywolk@gmail.com>
Fri, 6 Mar 2020 17:52:27 +0000 (21:52 +0400)
libs/libvpx/vpx_dsp/deblock.c

index 455b73bbcead79ada239282e1fb6090d5843ffc3..cc437af66cdb4a54914d507d15455a264191db86 100644 (file)
@@ -52,6 +52,11 @@ void vpx_post_proc_down_and_across_mb_row_c(unsigned char *src,
   assert(size >= 8);
   assert(cols >= 8);
 
+#ifdef __clang_analyzer__
+  /* older clang analyzer doesnt understand asserts, insert this until we ugrade analyzer */
+  if (cols < 8) return;
+#endif
+
   for (row = 0; row < size; row++) {
     /* post_proc_down for one row */
     p_src = src;