can be used outside lzma2_encoder.c.
to validate the filter options. Add missing validation to LZMA2 encoder when options are changed in the middle of encoding.
broken. API has changed a lot and it will still change a little more here and there. The command line tool doesn't have all the required changes to reflect the API changes, so it's easy to get "internal error" or trigger assertions.