Best way to remove distortion from bad 24/16bit conversion.

It’s here: Clipfix (see waveform pic) - plugins available? - #72 by steve
Please read the text in that post as it indicates important limitations of the effect.