fix(config): read an unusable encoding.xml EncoderPreset as the default #5
Reference in New Issue
Block a user
Delete Branch "benvin/fix-encoder-preset-fallback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
An
EncoderPresetelement the enum cannot parse throws during deserialization, andBaseConfigurationManager.LoadConfigurationcatches that and returns defaults, so one bad value silently discarded every other encoding setting inencoding.xml.EncoderPresetthrough a string surrogate in XML, leaving JSON untouchedautofor an empty, unknown or out-of-range value