diff --git a/src/intra.c b/src/intra.c index b3e3e6a4..ab08ed93 100644 --- a/src/intra.c +++ b/src/intra.c @@ -24,6 +24,7 @@ #include "intra.h" +#include #include #include #include @@ -679,6 +680,9 @@ void intra_get_angular_pred(const encoder_control * const encoder, pixel* src, i pixel ref_above[2 * LCU_WIDTH + 1]; pixel ref_left[2 * LCU_WIDTH + 1]; + // Tell clang-analyzer that everything is ok. + assert(width == 4 || width == 8 || width == 16 || width == 32); + abs_ang = ang_table[abs_ang]; intra_pred_angle = sign_ang * abs_ang;