Use a copy of the codec options so that the original isn't modified.