
For libcamera0.2 configuraiton.stride is already set to some incorrect value and configurations->validate() doesn't update it if it's not 0. For libcamera0.1 it was set to 0. So set it to 0 manually to make sure configurations->validate() computes the correct value.