xbmc/xbmc — comment on commit ad77a1aeacaf7e89db996bbb91e8c5bd9eb739db
File:  line 0
By CrystalP:

I don't think so. This commit fixed the issue that the dxva best method didn't stick. The value was saved correctly but at the next XBMC startup, it was loaded as VS_INTERLACEMETHOD_INVERSE_TELECINE, due to the wrong max value for the setting.

To avoid such problems in the future, I added a MAX enum value that automatically bumps the max value that can be loaded when a new interlacing or scaling method is added.
Technically, the max value given to GetInteger() should be the MAX enum value minus one. I wasn't sure if we could rely on enum values always incrementing by one.