[libvpx] scan-build: Fix "Assigned value is garbage or undefined" in vpx_post_proc_down_and_across_mb_row_c()

This commit is contained in:
Andrey Volk 2020-02-20 23:10:02 +04:00
parent 4e78f63847
commit 653835efe0
1 changed files with 5 additions and 0 deletions

View 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;