An easier and more immediately obvious approach would be to sandbox the codecs, so that they cannot do anything other than what they need to do.
Well-engineered systems like Genode focus on this approach, leveraging capabilities.
Well-engineered systems like Genode focus on this approach, leveraging capabilities.