This is just a display bug, it does not have impact on encoding. This bug is caused by resampler, because if you use -resample, the number of samples will not be the same, but encoder assumes number of samples of original sample rate configuration.