Real time ffmpeg / x264 encoder behavior when input resolution suddenly changes
FFmpeg will automatically insert scale filter to rescale to first resolution when it encounters input resolution changes. Obviously this only applies when encoding.