avutil/intmath: Add () to protect the ff_log2() argument