Change codec settings when needed