Previously the code was scattered around in places and the logic was hard to follow. CRF values will need more remapping done on them for future codecs and/or 10/12 bit video support, so move all that logic into set_quality_rate_options function that does three clear things: 1) set constant bit rate if that is used, 2) set lossless mode if that is used, 3) set CRF parameters if that is used. Pull Request: https://projects.blender.org/blender/blender/pulls/129092