diff --git a/libavutil/common.h b/libavutil/common.h index 2777cea9f9bba..92b721a59c48d 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -371,7 +371,7 @@ static av_always_inline av_const double av_clipd_c(double a, double amin, double */ static av_always_inline av_const int av_ceil_log2_c(int x) { - return av_log2((x - 1) << 1); + return av_log2((x - 1U) << 1); } /**