Set compression type before initializing sample format.